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
d5fdf01e
Commit
d5fdf01e
authored
Jun 17, 2022
by
Wei Shoulin
Browse files
ifs ver
parent
07bc5ac2
Changes
2
Hide whitespace changes
Inline
Side-by-side
csst_dfs_api/ifs/level0.py
View file @
d5fdf01e
...
...
@@ -21,6 +21,10 @@ class Level0DataApi(object):
qc0_status : [int],
prc_status : [int],
file_name: [str],
version: [str],
ra: [float],
dec: [float],
radius: [float],
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result
...
...
tests/msc/test_msc_level2.py
View file @
d5fdf01e
...
...
@@ -9,32 +9,32 @@ class MSCLevel2DataTestCase(unittest.TestCase):
def
setUp
(
self
):
self
.
api
=
Level2DataApi
()
def
test_find
(
self
):
recs
=
self
.
api
.
find
(
level
0
_id
=
'000001201'
,
create_time
=
(
"202
1
-06-
0
1 11:12:13"
,
"202
1
-06-
08
11:12:13"
))
print
(
'find:'
,
recs
)
def
test_catalog_query
(
self
):
result
=
self
.
api
.
catalog_query
(
obs_id
=
'100000000'
,
obs_time
=
(
"2021-05-24 11:12:13"
,
"2021-05-25 13:12:13"
),
limit
=
2
)
dt
=
self
.
api
.
to_table
(
result
)
print
()
dt
.
pprint
()
def
test_get
(
self
):
rec
=
self
.
api
.
get
(
id
=
2
)
print
(
'get:'
,
rec
)
def
test_update_proc_status
(
self
):
rec
=
self
.
api
.
update_proc_status
(
id
=
2
,
status
=
4
)
print
(
'update_proc_status:'
,
rec
)
def
test_update_qc2_status
(
self
):
rec
=
self
.
api
.
update_qc2_status
(
id
=
2
,
status
=
7
)
print
(
'update_qc
1
_status:'
,
rec
)
#
def test_find(self):
#
recs = self.api.find(
#
level
1
_id=
1
,
#
create_time = ("202
2
-06-1
5
11:12:13","202
2
-06-
16
11:12:13"))
#
print('find:', recs)
#
def test_catalog_query(self):
#
result = self.api.catalog_query(
#
obs_id='100000000',
#
obs_time = ("2021-05-24 11:12:13","2021-05-25 13:12:13"),
#
limit = 2)
#
dt = self.api.to_table(result)
#
print(
result
)
#
dt.pprint()
#
def test_get(self):
#
rec = self.api.get(id =
1
)
#
print('get:', rec)
#
def test_update_proc_status(self):
#
rec = self.api.update_proc_status(id =
1
, status = 4)
#
print('update_proc_status:', rec)
#
def test_update_qc2_status(self):
#
rec = self.api.update_qc2_status(id =
1
, status = 7)
#
print('update_qc
2
_status:', rec)
def
test_write
(
self
):
rec
=
self
.
api
.
write
(
...
...
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