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-dfs
csst-dfs-api
Commits
73d1cbdf
Commit
73d1cbdf
authored
Jun 17, 2024
by
Wei Shoulin
Browse files
l1 refs
parent
8a711af5
Pipeline
#5556
passed with stage
Changes
4
Pipelines
1
Show whitespace changes
Inline
Side-by-side
csst_dfs_api/facility/level1.py
View file @
73d1cbdf
...
...
@@ -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
'''
...
...
csst_dfs_api/ifs/level1.py
View file @
73d1cbdf
...
...
@@ -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
'''
...
...
tests/facility/test_facility_level1.py
View file @
73d1cbdf
...
...
@@ -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
tests/ifs/test_ifs_level1.py
View file @
73d1cbdf
...
...
@@ -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
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