Skip to content
GitLab
Explore
Projects
Groups
Snippets
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-cluster
Commits
0d2a7a78
Commit
0d2a7a78
authored
4 years ago
by
Wei Shoulin
Browse files
Options
Download
Email Patches
Plain Diff
update gaia3
parent
eaa4815c
main
master
1.0.1
v0.0.4
v0.0.2
No related merge requests found
Changes
22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_common_catalog.py
+1
-1
tests/test_common_catalog.py
tests/test_ifs_fits.py
+12
-8
tests/test_ifs_fits.py
with
13 additions
and
9 deletions
+13
-9
tests/test_common_catalog.py
+
1
-
1
View file @
0d2a7a78
...
...
@@ -10,5 +10,5 @@ class CommonEphemTestCase(unittest.TestCase):
self
.
api
=
CatalogApi
()
def
test_gaia3_query
(
self
):
recs
=
self
.
api
.
gaia3_query
(
ra
=
56.234039029108935
,
dec
=
14.466534827703473
,
radius
=
4
,
min_mag
=
-
1
,
max_mag
=
-
1
,
obstime
=
-
1
,
limit
=
2
)
recs
=
self
.
api
.
gaia3_query
(
ra
=
56.234039029108935
,
dec
=
14.466534827703473
,
radius
=
0.1
,
min_mag
=
4
,
max_mag
=
1
2
,
obstime
=
-
1
,
limit
=
2
)
print
(
'find:'
,
recs
)
This diff is collapsed.
Click to expand it.
tests/test_ifs_fits.py
+
12
-
8
View file @
0d2a7a78
...
...
@@ -9,14 +9,18 @@ class IFSFitsTestCase(unittest.TestCase):
def
setUp
(
self
):
self
.
api
=
FitsApi
()
def
test_find
(
self
):
recs
=
self
.
api
.
find
(
file_name
=
'CCD1_ObsTime_300_ObsNum_7.fits'
)
print
(
'find:'
,
recs
)
assert
len
(
recs
)
==
1
recs
=
self
.
api
.
find
()
print
(
'find:'
,
recs
)
assert
len
(
recs
)
>
1
# def test_find(self):
# recs = self.api.find(file_name='CCD1_ObsTime_300_ObsNum_7.fits')
# print('find:', recs)
# assert len(recs) == 1
# recs = self.api.find()
# print('find:', recs)
# assert len(recs) > 1
def
test_get
(
self
):
rec
=
self
.
api
.
get
(
fits_id
=
0
)
print
(
'get:'
,
rec
)
# def test_read(self):
# recs = self.api.find(file_name='CCD1_ObsTime_300_ObsNum_7.fits')
...
...
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
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
Menu
Explore
Projects
Groups
Snippets