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-cluster
Commits
0d2a7a78
Commit
0d2a7a78
authored
Apr 12, 2021
by
Wei Shoulin
Browse files
update gaia3
parent
eaa4815c
Changes
22
Show whitespace changes
Inline
Side-by-side
tests/test_common_catalog.py
View file @
0d2a7a78
...
@@ -10,5 +10,5 @@ class CommonEphemTestCase(unittest.TestCase):
...
@@ -10,5 +10,5 @@ class CommonEphemTestCase(unittest.TestCase):
self
.
api
=
CatalogApi
()
self
.
api
=
CatalogApi
()
def
test_gaia3_query
(
self
):
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
)
print
(
'find:'
,
recs
)
tests/test_ifs_fits.py
View file @
0d2a7a78
...
@@ -9,14 +9,18 @@ class IFSFitsTestCase(unittest.TestCase):
...
@@ -9,14 +9,18 @@ class IFSFitsTestCase(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
self
.
api
=
FitsApi
()
self
.
api
=
FitsApi
()
def
test_find
(
self
):
# def test_find(self):
recs
=
self
.
api
.
find
(
file_name
=
'CCD1_ObsTime_300_ObsNum_7.fits'
)
# recs = self.api.find(file_name='CCD1_ObsTime_300_ObsNum_7.fits')
print
(
'find:'
,
recs
)
# print('find:', recs)
assert
len
(
recs
)
==
1
# assert len(recs) == 1
recs
=
self
.
api
.
find
()
# recs = self.api.find()
print
(
'find:'
,
recs
)
# print('find:', recs)
assert
len
(
recs
)
>
1
# assert len(recs) > 1
def
test_get
(
self
):
rec
=
self
.
api
.
get
(
fits_id
=
0
)
print
(
'get:'
,
rec
)
# def test_read(self):
# def test_read(self):
# recs = self.api.find(file_name='CCD1_ObsTime_300_ObsNum_7.fits')
# recs = self.api.find(file_name='CCD1_ObsTime_300_ObsNum_7.fits')
...
...
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