Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Monica Rainer
gofio
Commits
fd6c6249
Commit
fd6c6249
authored
Nov 16, 2017
by
Monica Rainer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update config keys
parent
c8cfe94d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
drslib/config.py
drslib/config.py
+6
-8
No files found.
drslib/config.py
View file @
fd6c6249
"""
Last modified 2017-01-11
Written by Avet Harutyunyan for the old GIANO pipeline
Implemented in the GIANOB DRS by Monica Rainer
"""
...
...
@@ -70,10 +69,10 @@ CONFIG['USR_DIR'] = os.environ.get('HOME')
CONFIG
[
'TMP_DIR'
]
=
tempfile
.
gettempdir
()
CONFIG
[
'APP_DIR'
]
=
os
.
path
.
dirname
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
#
CONFIG['BASE_RAW'] = '/mnt/nfs/RAW'
CONFIG
[
'BASE_RAW'
]
=
'/home/monica/Documenti/gianob/gianobdrs/varie/commissioning_marzo/raw'
CONFIG
[
'BASE_RED_DIR'
]
=
os
.
path
.
join
(
CONFIG
[
'APP_DIR'
],
'reduced'
)
#
CONFIG['BASE_RED_DIR'] = '/mnt/nfs/REDUCED'
CONFIG
[
'BASE_RAW'
]
=
'/mnt/nfs/RAW'
#
CONFIG['BASE_RAW'] = '/home/monica/Documenti/gianob/gianobdrs/varie/commissioning_marzo/raw'
#
CONFIG['BASE_RED_DIR'] = os.path.join(CONFIG['APP_DIR'],'reduced')
CONFIG
[
'BASE_RED_DIR'
]
=
'/mnt/nfs/REDUCED'
CONFIG
[
'BASE_RAMP'
]
=
'/home/avet/gianorp/databases'
...
...
@@ -91,12 +90,11 @@ CONFIG['BADPIX_MASK'] = os.path.join(CONFIG['RES_DIR'], 'badpix_mask.fits')
CONFIG
[
'LOGGER'
]
=
{
'TERM'
:
True
,
'FILE'
:
True
}
# logger writes to terminal and/or to file
CONFIG
[
'LOG_FILE'
]
=
os
.
path
.
join
(
CONFIG
[
'RED_DIR'
],
'drs.log'
)
CONFIG
[
'STRAIGHT'
]
=
os
.
path
.
join
(
CONFIG
[
'RES_DIR'
],
'straight_giano_2D'
)
CONFIG
[
'STRAIGHT_OPT'
]
=
[
'I=1'
]
#
CONFIG['STRAIGHT_OPT'] = ['I=1','DY=-5']
#
CONFIG['STRAIGHT_OPT'] = ['I=1']
CONFIG
[
'STRAIGHT_OPT'
]
=
[
'I=1'
,
'DY=-5'
]
CONFIG
[
'BASE_CALIB_DIR'
]
=
os
.
path
.
join
(
CONFIG
[
'APP_DIR'
],
'calibrations'
)
CONFIG
[
'CALIB_DIR'
]
=
os
.
path
.
join
(
CONFIG
[
'BASE_CALIB_DIR'
],
'calfiles'
)
CONFIG
[
'CALIB_DB_DIR'
]
=
os
.
path
.
join
(
CONFIG
[
'BASE_CALIB_DIR'
],
'database'
)
#CONFIG['NIGHT_DB_DIR'] = os.path.join(CONFIG['APP_DIR'], 'databases')
CONFIG
[
'WEBUI_DB_DIR'
]
=
os
.
path
.
join
(
CONFIG
[
'APP_DIR'
],
'webuidatabases'
)
# Output name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment