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
882f815a
Commit
882f815a
authored
Apr 17, 2024
by
Wei Shoulin
Browse files
C9
parent
d6139d80
Pipeline
#4169
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
tests/common/test_common_catalog.py
View file @
882f815a
...
...
@@ -23,20 +23,15 @@ class CommonCatalogTestCase(unittest.TestCase):
limit
=
10
)
print
(
result
)
if
result
.
success
:
dt
=
self
.
api
.
to_table
(
result
)
dt
.
pprint
()
# df = dt.to_pandas()
# print(df.head())
print
(
'used:'
,
time
.
time
()
-
t
)
print
(
'return:'
,
len
(
result
.
data
))
def
test_sim_query
(
self
):
t
=
time
.
time
()
result
=
self
.
api
.
catalog_query
(
ra
=
90
,
dec
=
24.5
,
radius
=
0.2
1
,
ra
=
243
,
dec
=
40
,
radius
=
1
,
columns
=
(
'id'
,
'ra'
,
'dec'
,
'av'
,
'pmdec'
,
'phot_g_mean_mag'
),
catalog_name
=
'sim'
,
min_mag
=-
1
,
...
...
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