Commit 882f815a authored by Wei Shoulin's avatar Wei Shoulin
Browse files

C9

parent d6139d80
Pipeline #4169 passed with stage
...@@ -23,20 +23,15 @@ class CommonCatalogTestCase(unittest.TestCase): ...@@ -23,20 +23,15 @@ class CommonCatalogTestCase(unittest.TestCase):
limit = 10 limit = 10
) )
print(result) 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('used:', time.time()-t)
print('return:', len(result.data)) print('return:', len(result.data))
def test_sim_query(self): def test_sim_query(self):
t= time.time() t= time.time()
result = self.api.catalog_query( result = self.api.catalog_query(
ra=90, ra=243,
dec=24.5, dec=40,
radius=0.21, radius=1,
columns = ('id','ra','dec','av','pmdec','phot_g_mean_mag'), columns = ('id','ra','dec','av','pmdec','phot_g_mean_mag'),
catalog_name='sim', catalog_name='sim',
min_mag=-1, min_mag=-1,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment