Commit 06ef4dee authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

add dm.get_refs

parent a0765ce3
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment