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

qc status

parent 8dcbedee
Pipeline #6312 passed with stage
...@@ -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'},
......
...@@ -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]
......
...@@ -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'},
......
...@@ -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='10000010101', level0_id='101091002323',
# module_id = "MSC", module_id = "MSC",
# create_time = ("2024-01-01 11:12:13","2024-06-08 11:12:13")) create_time = ("2024-01-01 11:12:13","2024-07-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 = '10000010101', level0_id = '1010910023236625',
module_id = "MSC", module_id = "MSC",
file_type = "SCIE", 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_20270810142128_20270810142358_100000101_20_img_L1.fits", filename = "CSST_MSC_MS_SCI_20250408112519_20250408112749_10109100232366_25_L1_V01.fits",
file_path = "/opt/temp/csst/CSST_MSC_MS_SCI_20270810142128_20270810142358_100000101_20_img_L1.fits", file_path = "/opt/temp/csst/L1/CSST_MSC_MS_SCI_20250408112519_20250408112749_10109100232366_25_L1_V01.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'},
......
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