Commit 75147aa2 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

add build_id

parent 62e2b49a
......@@ -24,7 +24,9 @@ class Level2DataApi(object):
qc2_status : [int],
prc_status : [int],
import_status : [int],
filename: [str]
filename: [str],
build_id : [int],
pipeline_id: [str],
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
......
......@@ -25,15 +25,26 @@ class Level2TypeTestCase(unittest.TestCase):
def test_write(self):
rec = self.api.write(
data_type = "csst-msc-l1-mbi-cat",
data_type = "csst-msc-l1-mbi-cat2",
module_id = "MSC",
key_column = "ID",
hdu_index = 1,
demo_filename = "CSST_MSC_MS_SCIE_20240821023334_20240821023604_10160000011_19_L1_V01_CAT.fits",
demo_file_path = "/Users/wsl/temp/csst/msc/L2/CSST_MSC_MS_SCIE_20240821023334_20240821023604_10160000011_19_L1_V01_CAT.fits",
demo_filename = "csst-msc-l1-mbi-cat.toml",
demo_file_path = "/Users/wsl/temp/csst/msc/L2/csst-msc-l1-mbi-cat.toml",
ra_column = "RA",
dec_column = "DEC")
print("write :", rec)
# rec = self.api.write(
# data_type = "csst-msc-l1-mbi-cat",
# module_id = "MSC",
# key_column = "ID",
# hdu_index = 1,
# demo_filename = "CSST_MSC_MS_SCIE_20240821023334_20240821023604_10160000011_19_L1_V01_CAT.fits",
# demo_file_path = "/Users/wsl/temp/csst/msc/L2/CSST_MSC_MS_SCIE_20240821023334_20240821023604_10160000011_19_L1_V01_CAT.fits",
# ra_column = "RA",
# dec_column = "DEC")
# print("write :", rec)
# rec = self.api.write(
# data_type = "csst-msc-xcat",
......
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