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
57aa4552
Commit
57aa4552
authored
Jul 22, 2024
by
Wei Shoulin
Browse files
qc status
parent
8dcbedee
Pipeline
#6312
passed with stage
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/facility/level1.py
View file @
57aa4552
...
...
@@ -117,12 +117,13 @@ class Level1DataApi(object):
detector_no: [str]
file_type : [str]
filename : [str]
file_path : [str]
file_path : [str]
qc1_status: [int]
prc_status : [int]
prc_time : [str]
pipeline_id : [str]
pmapname : [str]
build : [
str
],
build : [
int
],
refs : list of dict, for example:
[{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
...
...
csst_dfs_api/facility/level2.py
View file @
57aa4552
...
...
@@ -120,7 +120,8 @@ class Level2DataApi(object):
object_name: [str]
data_type : [str]
filename : [str]
file_path : [str]
file_path : [str]
qc2_status : [int]
prc_status : [int]
prc_time : [str]
pipeline_id : [str]
...
...
csst_dfs_api/ifs/level1.py
View file @
57aa4552
...
...
@@ -101,12 +101,13 @@ class Level1DataApi(object):
cube_id: [str]
data_type : [str]
filename : [str]
file_path : [str]
file_path : [str]
qc1_status: [int]
prc_status : [int]
prc_time : [str]
pipeline_id : [str]
pmapname : [str]
build : [
str
],
build : [
int
],
refs : list of dict, for example:
[{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
{'file_type':'bias', 'id': 'csst_msc_bias_001.rmap'},
...
...
tests/facility/test_facility_level1.py
View file @
57aa4552
...
...
@@ -9,19 +9,19 @@ class Level1DataTestCase(unittest.TestCase):
def
setUp
(
self
):
self
.
api
=
Level1DataApi
()
#
def test_find(self):
#
recs = self.api.find(
#
level0_id='10
000010101
',
#
module_id = "MSC",
#
create_time = ("2024-01-01 11:12:13","2024-0
6
-08 11:12:13"))
#
print('find:', recs)
def
test_find
(
self
):
recs
=
self
.
api
.
find
(
level0_id
=
'10
1091002323
'
,
module_id
=
"MSC"
,
create_time
=
(
"2024-01-01 11:12:13"
,
"2024-0
7
-08 11:12:13"
))
print
(
'find:'
,
recs
)
#
def test_find_by_ids(self):
#
recs = self.api.find_by_ids(
#
module_id = "MSC",
#
ids=[
16
]
#
)
#
print('find_by_ids:', recs)
def
test_find_by_ids
(
self
):
recs
=
self
.
api
.
find_by_ids
(
module_id
=
"MSC"
,
ids
=
[
42
]
)
print
(
'find_by_ids:'
,
recs
)
def
test_find_refs_by_ids
(
self
):
recs
=
self
.
api
.
find_refs_by_ids
(
...
...
@@ -56,13 +56,13 @@ class Level1DataTestCase(unittest.TestCase):
def
test_write
(
self
):
rec
=
self
.
api
.
write
(
level0_id
=
'10
0000
1010
1
'
,
level0_id
=
'1010
9
10
023236625
'
,
module_id
=
"MSC"
,
file_type
=
"SCI
E
"
,
file_type
=
"SCI"
,
prc_status
=
3
,
prc_time
=
'2021-10-22 11:12:13'
,
filename
=
"CSST_MSC_MS_SCI_202
70810142128_20270810142358_100000101_20_img_L
1.fits"
,
file_path
=
"/opt/temp/csst/CSST_MSC_MS_SCI_202
70810142128_20270810142358_100000101_20_img_L
1.fits"
,
filename
=
"CSST_MSC_MS_SCI_202
50408112519_20250408112749_10109100232366_25_L1_V0
1.fits"
,
file_path
=
"/opt/temp/csst/
L1/
CSST_MSC_MS_SCI_202
50408112519_20250408112749_10109100232366_25_L1_V0
1.fits"
,
pipeline_id
=
"P1"
,
build_id
=
123
,
refs
=
[{
'file_type'
:
'dark'
,
'id'
:
'csst_msc_dark_001.rmap'
},
...
...
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