Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
csst_common
Commits
06ef4dee
Commit
06ef4dee
authored
Jul 08, 2023
by
BO ZHANG
🏀
Browse files
add dm.get_refs
parent
a0765ce3
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
06ef4dee
...
@@ -545,6 +545,20 @@ class CsstMsDataManager:
...
@@ -545,6 +545,20 @@ class CsstMsDataManager:
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
def
get_refs
(
self
,
detector
=
6
):
def
get_refs
(
self
,
detector
=
6
):
"""
Parameters
----------
detector: int
Detector number.
Returns
-------
dict
{'bias': '/crdsroot/references/msc/csst_msc_ms_bias_11_000001.fits',
'dark': '/crdsroot/references/msc/csst_msc_ms_dark_11_000001.fits',
'ledflat': '/crdsroot/references/msc/csst_msc_ms_ledflat_11_000001.fits',
'shutter': '/crdsroot/references/msc/csst_msc_ms_shutter_11_000001.fits'}
"""
if
self
.
crds
.
is_available
:
if
self
.
crds
.
is_available
:
return
self
.
crds
.
retry
(
return
self
.
crds
.
retry
(
self
.
crds
.
get_refs
,
3
,
self
.
crds
.
get_refs
,
3
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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