Commit c20ed47f authored by Wei Shoulin's avatar Wei Shoulin
Browse files

no ver

parent 90771d93
from python:3.8.1-slim
RUN apt-get update -y --allow-unauthenticated && apt-get install curl git -y --allow-unauthenticated
RUN curl https://raw.fastgit.org/astronomical-data-processing/csst-dfs-api/master/tools/csst-dfs-api-install.sh >> /csst-dfs-api-install.sh
RUN chmod a+x /csst-dfs-api-install.sh
# RUN /csst-dfs-api-install.sh
\ No newline at end of file
import os
import unittest
from astropy.io import fits
import time
from csst_dfs_api.common.catalog import CatalogApi
......@@ -10,14 +11,16 @@ class CommonCatalogTestCase(unittest.TestCase):
self.api = CatalogApi()
def test_catalog_query(self):
t= time.time()
result = self.api.catalog_query(
ra=160,
dec=-17,
radius=0.2,
ra=128, # 15415
dec=-40,
radius=0.5,
catalog_name='gaia3',
min_mag=-1,
max_mag=-1,
obstime = -1,
limit = 2
)
print('used:', time.time()-t)
print('return:', result)
......@@ -2,15 +2,6 @@ echo "CSST-DFS-API Installer"
echo "=============================================="
version=""
if [ $# == 0 ] ; then
version=""
elif [ $# == 1 ] ; then
version="@$1"
else
echo "USAGE: $0 [version]"
echo " e.g.: $0 v0.0.1"
exit 1;
fi
pip uninstall csst-dfs-api-local -y
pip uninstall csst-dfs-api-cluster -y
......
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