Commit 57aa4552 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

qc status

parent 8dcbedee
Pipeline #6312 passed with stage
......@@ -118,11 +118,12 @@ class Level1DataApi(object):
file_type : [str]
filename : [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'},
......
......@@ -121,6 +121,7 @@ class Level2DataApi(object):
data_type : [str]
filename : [str]
file_path : [str]
qc2_status : [int]
prc_status : [int]
prc_time : [str]
pipeline_id : [str]
......
......@@ -102,11 +102,12 @@ class Level1DataApi(object):
data_type : [str]
filename : [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'},
......
......@@ -9,19 +9,19 @@ class Level1DataTestCase(unittest.TestCase):
def setUp(self):
self.api = Level1DataApi()
# def test_find(self):
# recs = self.api.find(
# level0_id='10000010101',
# module_id = "MSC",
# create_time = ("2024-01-01 11:12:13","2024-06-08 11:12:13"))
# print('find:', recs)
def test_find(self):
recs = self.api.find(
level0_id='101091002323',
module_id = "MSC",
create_time = ("2024-01-01 11:12:13","2024-07-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 = '10000010101',
level0_id = '1010910023236625',
module_id = "MSC",
file_type = "SCIE",
file_type = "SCI",
prc_status = 3,
prc_time = '2021-10-22 11:12:13',
filename = "CSST_MSC_MS_SCI_20270810142128_20270810142358_100000101_20_img_L1.fits",
file_path = "/opt/temp/csst/CSST_MSC_MS_SCI_20270810142128_20270810142358_100000101_20_img_L1.fits",
filename = "CSST_MSC_MS_SCI_20250408112519_20250408112749_10109100232366_25_L1_V01.fits",
file_path = "/opt/temp/csst/L1/CSST_MSC_MS_SCI_20250408112519_20250408112749_10109100232366_25_L1_V01.fits",
pipeline_id = "P1",
build_id = 123,
refs = [{'file_type':'dark', 'id': 'csst_msc_dark_001.rmap'},
......
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