Commit 1941034d authored by Wei Shoulin's avatar Wei Shoulin
Browse files

rename msc mbi

parent be47b5da
from astropy.table import Table
from .delegate import Delegate
from csst_dfs_commons.models import Result
from csst_dfs_api.common.utils import to_table as to_fits_table
......@@ -34,7 +32,7 @@ class CatalogApi(object):
return to_fits_table(query_result)
def gaia3_query(self, ra: float, dec: float, radius: float, columns: tuple,min_mag: float, max_mag: float, obstime: int, limit: int):
"""retrieval GAIA EDR 3
"""retrieval GAIA DR 3, all column name must be lowercase. columns specification at https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/sec_dm_main_source_catalogue/ssec_dm_gaia_source.html
:param ra: in deg
:param dec: in deg
......
......@@ -48,7 +48,7 @@ class Level1DataApi(object):
return self.stub.update_proc_status(**kwargs)
def update_qc1_status(self, **kwargs):
''' update the status of QC0
''' update the status of QC1
:param kwargs: Parameter dictionary, key items support:
id = [int],
......
......@@ -48,7 +48,7 @@ class Level1DataApi(object):
return self.stub.update_proc_status(**kwargs)
def update_qc1_status(self, **kwargs):
''' update the status of QC0
''' update the status of QC1
:param kwargs: Parameter dictionary, key items support:
id = [int],
......
from .level1 import Level1DataApi
from .level1prc import Level1PrcApi
from .level2 import Level2DataApi
from .level2co import Level2CoApi
\ No newline at end of file
......@@ -57,7 +57,7 @@ class Level1DataApi(object):
return self.stub.update_proc_status(**kwargs)
def update_qc1_status(self, **kwargs):
''' update the status of QC0
''' update the status of QC1
:param kwargs: Parameter dictionary, key items support:
id = [int],
......
......@@ -48,7 +48,7 @@ class Level1DataApi(object):
return self.stub.update_proc_status(**kwargs)
def update_qc1_status(self, **kwargs):
''' update the status of QC0
''' update the status of QC1
:param kwargs: Parameter dictionary, key items support:
id = [int],
......
......@@ -68,10 +68,10 @@ class Level1DataApi(object):
return self.stub.update_proc_status(**kwargs)
def update_qc1_status(self, **kwargs):
''' update the status of QC0
''' update the status of QC1
:param kwargs: Parameter dictionary, key items support:
id = [int],
id = [int]
status = [int]
:returns: csst_dfs_common.models.Result
......
import os
import unittest
from astropy.io import fits
import time
from csst_dfs_api.common.catalog import CatalogApi
......@@ -15,7 +13,7 @@ class CommonCatalogTestCase(unittest.TestCase):
result = self.api.catalog_query(
ra=90,
dec=24.5,
radius=1,
radius=0.21,
columns = ('ref_epoch','ra','ra_error','dec','dec_error','parallax','parallax_error','pmra','pmra_error','pmdec','pmdec_error','phot_g_mean_mag','source_id'),
catalog_name='gaia3',
min_mag=-1,
......
......@@ -2,7 +2,7 @@ import os
import unittest
from astropy.io import fits
from csst_dfs_api.msc.level1 import Level1DataApi
from csst_dfs_api.mbi.level1 import Level1DataApi
class MSCLevel1DataTestCase(unittest.TestCase):
......
......@@ -2,7 +2,7 @@ import os
import unittest
from astropy.io import fits
from csst_dfs_api.msc.level1prc import Level1PrcApi
from csst_dfs_api.mbi.level1prc import Level1PrcApi
class MSCLevel1PrcTestCase(unittest.TestCase):
......
......@@ -2,7 +2,7 @@ import os
import unittest
from astropy.io import fits
from csst_dfs_api.common.utils import to_table as to_fits_table
from csst_dfs_api.msc.level2 import Level2DataApi
from csst_dfs_api.mbi.level2 import Level2DataApi
class MSCLevel2DataTestCase(unittest.TestCase):
......
......@@ -2,7 +2,7 @@ import os
import unittest
from astropy.io import fits
from csst_dfs_api.msc.level2co import Level2CoApi
from csst_dfs_api.mbi.level2co import Level2CoApi
class MSCLevel2CoDataTestCase(unittest.TestCase):
......
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