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
75147aa2
Commit
75147aa2
authored
Dec 30, 2023
by
Wei Shoulin
Browse files
add build_id
parent
62e2b49a
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/facility/level2.py
View file @
75147aa2
...
@@ -24,7 +24,9 @@ class Level2DataApi(object):
...
@@ -24,7 +24,9 @@ class Level2DataApi(object):
qc2_status : [int],
qc2_status : [int],
prc_status : [int],
prc_status : [int],
import_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
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
:returns: csst_dfs_common.models.Result
...
...
tests/facility/test_facility_level2type.py
View file @
75147aa2
...
@@ -25,15 +25,26 @@ class Level2TypeTestCase(unittest.TestCase):
...
@@ -25,15 +25,26 @@ class Level2TypeTestCase(unittest.TestCase):
def
test_write
(
self
):
def
test_write
(
self
):
rec
=
self
.
api
.
write
(
rec
=
self
.
api
.
write
(
data_type
=
"csst-msc-l1-mbi-cat"
,
data_type
=
"csst-msc-l1-mbi-cat
2
"
,
module_id
=
"MSC"
,
module_id
=
"MSC"
,
key_column
=
"ID"
,
key_column
=
"ID"
,
hdu_index
=
1
,
hdu_index
=
1
,
demo_filename
=
"
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_MS_SCIE_20240821023334_20240821023604_10160000011_19_L1_V01_CAT.fits
"
,
demo_file_path
=
"/Users/wsl/temp/csst/msc/L2/
csst-msc-l1-mbi-cat.toml
"
,
ra_column
=
"RA"
,
ra_column
=
"RA"
,
dec_column
=
"DEC"
)
dec_column
=
"DEC"
)
print
(
"write :"
,
rec
)
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(
# rec = self.api.write(
# data_type = "csst-msc-xcat",
# data_type = "csst-msc-xcat",
...
...
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