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
806ae44d
Commit
806ae44d
authored
Oct 28, 2024
by
Wei Shoulin
Browse files
test
parent
21a24bfa
Pipeline
#7158
passed with stage
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
tests/facility/test_facility_level0.py
View file @
806ae44d
...
...
@@ -8,7 +8,7 @@ class Level0DataTestCase(unittest.TestCase):
self
.
api
=
Level0DataApi
()
def
test_find
(
self
):
recs
=
self
.
api
.
find
(
obs_id
=
'10000
0101'
,
file_type
=
'sci'
,
limit
=
0
)
recs
=
self
.
api
.
find
(
file_type
=
'FLAT'
,
create_time
=
(
'2024-01-01 01:
01
:
01'
,
'2024-11-01 01:01:01'
),
limit
=
0
)
print
(
'find:'
,
recs
)
def
test_get
(
self
):
...
...
tests/mbi/test_mbi_level1.py
0 → 100644
View file @
806ae44d
import
os
import
unittest
from
astropy.io
import
fits
from
csst_dfs_api.mbi.level1
import
Level1DataApi
class
Level1DataTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
api
=
Level1DataApi
()
def
test_cutout
(
self
):
recs
=
self
.
api
.
cutout
(
ra
=
120
,
dec
=
40
,
pixels
=
100
,
filters
=
[
'g'
,
'r'
,
'i'
])
print
(
'find:'
,
recs
)
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