Commit 73d1cbdf authored by Wei Shoulin's avatar Wei Shoulin
Browse files

l1 refs

parent 8a711af5
Pipeline #5556 passed with stage
......@@ -123,7 +123,10 @@ class Level1DataApi(object):
pipeline_id : [str]
pmapname : [str]
build : [str],
refs : dict for example: {'dark': 'csst_msc_dark_001.rmap', 'bias': 'csst_msc_bias_001.rmap', 'flat': 'csst_msc_flat_001.rmap'}
refs : list of dict, for example:
[{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
{'file_type':'flat', 'id': 'csst_msc_flat_001.rmap'}]
:returns: csst_dfs_common.models.Result
'''
......
......@@ -107,7 +107,10 @@ class Level1DataApi(object):
pipeline_id : [str]
pmapname : [str]
build : [str],
refs : dict for example: {'dark': 'csst_msc_dark_001.rmap', 'bias': 'csst_msc_bias_001.rmap', 'flat': 'csst_msc_flat_001.rmap'}
refs : list of dict, for example:
[{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
{'file_type':'flat', 'id': 'csst_msc_flat_001.rmap'}]
:returns: csst_dfs_common.models.Result
'''
......
......@@ -65,6 +65,8 @@ class Level1DataTestCase(unittest.TestCase):
file_path = "/opt/temp/csst/CSST_MSC_MS_SCI_20270810142128_20270810142358_100000101_20_img_L1.fits",
pipeline_id = "P1",
build_id = 123,
refs = {'flat': '3', 'arc': '2', 'bias': '1'}
refs = [{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
{'file_type':'flat', 'id': 'csst_msc_flat_001.rmap'}]
)
print('write:', rec)
\ No newline at end of file
......@@ -46,6 +46,8 @@ class Level1DataTestCase(unittest.TestCase):
file_path = "/opt/temp/csst/CSST_MSC_MS_SCI_20270810142128_20270810142358_100000101_20_img_L1.fits",
pipeline_id = "P1",
build_id = 123,
refs = {'flat': '3', 'arc': '2', 'bias': '1'}
refs = [{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
{'file_type':'flat', 'id': 'csst_msc_flat_001.rmap'}]
)
print('write:', rec)
\ No newline at end of file
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