Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
1 year ago
by
BO ZHANG
Browse files
Options
Download
Email Patches
Plain Diff
add dm.get_refs
parent
a0765ce3
dev
main
wangxia-main-patch-87026
zhaobowei-main-patch-61353
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
csst_common/data_manager.py
+14
-0
csst_common/data_manager.py
with
14 additions
and
0 deletions
+14
-0
csst_common/data_manager.py
+
14
-
0
View file @
06ef4dee
...
...
@@ -545,6 +545,20 @@ class CsstMsDataManager:
return
os
.
path
.
join
(
self
.
dir_l1
,
fn
)
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
:
return
self
.
crds
.
retry
(
self
.
crds
.
get_refs
,
3
,
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Explore
Projects
Groups
Snippets