Commit 3d399d4a authored by Wei Shoulin's avatar Wei Shoulin
Browse files

reqs

parent ae72d421
...@@ -55,6 +55,7 @@ class Level2DataApi(object): ...@@ -55,6 +55,7 @@ class Level2DataApi(object):
dec: [float] in deg dec: [float] in deg
radius: [float] in deg radius: [float] in deg
obs_time: (start, end) obs_time: (start, end)
limit: limits returns the number of records,default 0:no-limit
:returns: csst_dfs_common.models.Result :returns: csst_dfs_common.models.Result
''' '''
......
## Build
```bash
make rst
make html
```
## Online Browse
```bash
pip install sphinx-autobuild
cd docs
sphinx-autobuild source build/html
```
...@@ -20,6 +20,38 @@ csst\_dfs\_api.facility.detector module ...@@ -20,6 +20,38 @@ csst\_dfs\_api.facility.detector module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
csst\_dfs\_api.facility.level0 module
-------------------------------------
.. automodule:: csst_dfs_api.facility.level0
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.facility.level0prc module
----------------------------------------
.. automodule:: csst_dfs_api.facility.level0prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.facility.level1 module
-------------------------------------
.. automodule:: csst_dfs_api.facility.level1
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.facility.level1prc module
----------------------------------------
.. automodule:: csst_dfs_api.facility.level1prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.facility.level2producer module csst\_dfs\_api.facility.level2producer module
--------------------------------------------- ---------------------------------------------
......
csst\_dfs\_api.functional package
=================================
Module contents
---------------
.. automodule:: csst_dfs_api.functional
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.ifs package csst\_dfs\_api.ifs package
========================== ==========================
Submodules
----------
csst\_dfs\_api.ifs.calmerge module
----------------------------------
.. automodule:: csst_dfs_api.ifs.calmerge
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.ifs.level0 module
--------------------------------
.. automodule:: csst_dfs_api.ifs.level0
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.ifs.level0prc module
-----------------------------------
.. automodule:: csst_dfs_api.ifs.level0prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.ifs.level1 module
--------------------------------
.. automodule:: csst_dfs_api.ifs.level1
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.ifs.level1prc module
-----------------------------------
.. automodule:: csst_dfs_api.ifs.level1prc
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------
......
csst\_dfs\_api.mbi package
==========================
Submodules
----------
csst\_dfs\_api.mbi.level2 module
--------------------------------
.. automodule:: csst_dfs_api.mbi.level2
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mbi.level2co module
----------------------------------
.. automodule:: csst_dfs_api.mbi.level2co
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: csst_dfs_api.mbi
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mci package csst\_dfs\_api.mci package
========================== ==========================
Submodules
----------
csst\_dfs\_api.mci.calmerge module
----------------------------------
.. automodule:: csst_dfs_api.mci.calmerge
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mci.level0 module
--------------------------------
.. automodule:: csst_dfs_api.mci.level0
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mci.level0prc module
-----------------------------------
.. automodule:: csst_dfs_api.mci.level0prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mci.level1 module
--------------------------------
.. automodule:: csst_dfs_api.mci.level1
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.mci.level1prc module
-----------------------------------
.. automodule:: csst_dfs_api.mci.level1prc
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------
......
...@@ -10,10 +10,11 @@ Subpackages ...@@ -10,10 +10,11 @@ Subpackages
csst_dfs_api.common csst_dfs_api.common
csst_dfs_api.cpic csst_dfs_api.cpic
csst_dfs_api.facility csst_dfs_api.facility
csst_dfs_api.functional
csst_dfs_api.hstdm csst_dfs_api.hstdm
csst_dfs_api.ifs csst_dfs_api.ifs
csst_dfs_api.mbi
csst_dfs_api.mci csst_dfs_api.mci
csst_dfs_api.msc
csst_dfs_api.sls csst_dfs_api.sls
Module contents Module contents
......
...@@ -4,46 +4,6 @@ csst\_dfs\_api.sls package ...@@ -4,46 +4,6 @@ csst\_dfs\_api.sls package
Submodules Submodules
---------- ----------
csst\_dfs\_api.sls.calmerge module
----------------------------------
.. automodule:: csst_dfs_api.sls.calmerge
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.sls.level0 module
--------------------------------
.. automodule:: csst_dfs_api.sls.level0
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.sls.level0prc module
-----------------------------------
.. automodule:: csst_dfs_api.sls.level0prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.sls.level1 module
--------------------------------
.. automodule:: csst_dfs_api.sls.level1
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.sls.level1prc module
-----------------------------------
.. automodule:: csst_dfs_api.sls.level1prc
:members:
:undoc-members:
:show-inheritance:
csst\_dfs\_api.sls.level2spectra module csst\_dfs\_api.sls.level2spectra module
--------------------------------------- ---------------------------------------
......
astropy>=4.0 astropy>=4.0
git+https://github.com/astronomical-data-processing/csst-dfs-commons.git grpcio>=1.28.1
\ No newline at end of file grpcio_tools>=1.28.1
protobuf==3.9.0
pandas>=1.2.4
networkx>=2.4
matplotlib>=3.4.1
numpy>=1.20.1
astropy_healpix==0.7
DBUtils==1.3
\ No newline at end of file
...@@ -21,9 +21,10 @@ class CommonCatalogTestCase(unittest.TestCase): ...@@ -21,9 +21,10 @@ class CommonCatalogTestCase(unittest.TestCase):
obstime = -1, obstime = -1,
limit = 0 limit = 0
) )
# print(result) print(result)
dt = self.api.to_table(result) if result.success:
dt.pprint() dt = self.api.to_table(result)
dt.pprint()
# df = dt.to_pandas() # df = dt.to_pandas()
# print(df.head()) # print(df.head())
print('used:', time.time()-t) print('used:', time.time()-t)
......
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