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
b40ae11f
Commit
b40ae11f
authored
Jul 10, 2023
by
BO ZHANG
🏀
Browse files
add verbose info for dm.get_refs
parent
96b6e637
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
b40ae11f
...
@@ -560,11 +560,13 @@ class CsstMsDataManager:
...
@@ -560,11 +560,13 @@ class CsstMsDataManager:
'shutter': '/crdsroot/references/msc/csst_msc_ms_shutter_11_000001.fits'}
'shutter': '/crdsroot/references/msc/csst_msc_ms_shutter_11_000001.fits'}
"""
"""
if
self
.
crds
.
is_available
:
if
self
.
crds
.
is_available
:
print
(
"Grab refs from CRDS ..."
)
return
self
.
crds
.
retry
(
return
self
.
crds
.
retry
(
self
.
crds
.
get_refs
,
3
,
self
.
crds
.
get_refs
,
3
,
file_path
=
self
.
l0_detector
(
detector
)
file_path
=
self
.
l0_detector
(
detector
)
)
)
else
:
else
:
print
(
"Grab refs from local files ..."
)
refs
=
dict
()
refs
=
dict
()
if
self
.
datatype
==
"mbi"
:
if
self
.
datatype
==
"mbi"
:
ref_types
=
[
"bias"
,
"dark"
,
"ledflat"
,
"shutter"
]
ref_types
=
[
"bias"
,
"dark"
,
"ledflat"
,
"shutter"
]
...
...
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