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