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
1941034d
Commit
1941034d
authored
Jan 16, 2023
by
Wei Shoulin
Browse files
➰
rename msc
➡
mbi
parent
be47b5da
Changes
15
Show whitespace changes
Inline
Side-by-side
csst_dfs_api/common/catalog.py
View file @
1941034d
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
E
DR 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
...
...
csst_dfs_api/hstdm/level1.py
View file @
1941034d
...
...
@@ -48,7 +48,7 @@ class Level1DataApi(object):
return
self
.
stub
.
update_proc_status
(
**
kwargs
)
def
update_qc1_status
(
self
,
**
kwargs
):
''' update the status of QC
0
''' update the status of QC
1
:param kwargs: Parameter dictionary, key items support:
id = [int],
...
...
csst_dfs_api/ifs/level1.py
View file @
1941034d
...
...
@@ -48,7 +48,7 @@ class Level1DataApi(object):
return
self
.
stub
.
update_proc_status
(
**
kwargs
)
def
update_qc1_status
(
self
,
**
kwargs
):
''' update the status of QC
0
''' update the status of QC
1
:param kwargs: Parameter dictionary, key items support:
id = [int],
...
...
csst_dfs_api/m
sc
/__init__.py
→
csst_dfs_api/m
bi
/__init__.py
View file @
1941034d
from
.level1
import
Level1DataApi
from
.level1prc
import
Level1PrcApi
from
.level2
import
Level2DataApi
from
.level2co
import
Level2CoApi
\ No newline at end of file
csst_dfs_api/m
sc
/level1.py
→
csst_dfs_api/m
bi
/level1.py
View file @
1941034d
...
...
@@ -57,7 +57,7 @@ class Level1DataApi(object):
return
self
.
stub
.
update_proc_status
(
**
kwargs
)
def
update_qc1_status
(
self
,
**
kwargs
):
''' update the status of QC
0
''' update the status of QC
1
:param kwargs: Parameter dictionary, key items support:
id = [int],
...
...
csst_dfs_api/m
sc
/level1prc.py
→
csst_dfs_api/m
bi
/level1prc.py
View file @
1941034d
File moved
csst_dfs_api/m
sc
/level2.py
→
csst_dfs_api/m
bi
/level2.py
View file @
1941034d
File moved
csst_dfs_api/m
sc
/level2co.py
→
csst_dfs_api/m
bi
/level2co.py
View file @
1941034d
File moved
csst_dfs_api/mci/level1.py
View file @
1941034d
...
...
@@ -48,7 +48,7 @@ class Level1DataApi(object):
return
self
.
stub
.
update_proc_status
(
**
kwargs
)
def
update_qc1_status
(
self
,
**
kwargs
):
''' update the status of QC
0
''' update the status of QC
1
:param kwargs: Parameter dictionary, key items support:
id = [int],
...
...
csst_dfs_api/sls/level1.py
View file @
1941034d
...
...
@@ -68,10 +68,10 @@ class Level1DataApi(object):
return
self
.
stub
.
update_proc_status
(
**
kwargs
)
def
update_qc1_status
(
self
,
**
kwargs
):
''' update the status of QC
0
''' update the status of QC
1
:param kwargs: Parameter dictionary, key items support:
id = [int]
,
id = [int]
status = [int]
:returns: csst_dfs_common.models.Result
...
...
tests/common/test_common_catalog.py
View file @
1941034d
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.2
1
,
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
,
...
...
tests/m
sc
/test_m
sc
_level1.py
→
tests/m
bi
/test_m
bi
_level1.py
View file @
1941034d
...
...
@@ -2,7 +2,7 @@ import os
import
unittest
from
astropy.io
import
fits
from
csst_dfs_api.m
sc
.level1
import
Level1DataApi
from
csst_dfs_api.m
bi
.level1
import
Level1DataApi
class
MSCLevel1DataTestCase
(
unittest
.
TestCase
):
...
...
tests/m
sc
/test_m
sc
_level1_prc.py
→
tests/m
bi
/test_m
bi
_level1_prc.py
View file @
1941034d
...
...
@@ -2,7 +2,7 @@ import os
import
unittest
from
astropy.io
import
fits
from
csst_dfs_api.m
sc
.level1prc
import
Level1PrcApi
from
csst_dfs_api.m
bi
.level1prc
import
Level1PrcApi
class
MSCLevel1PrcTestCase
(
unittest
.
TestCase
):
...
...
tests/m
sc
/test_m
sc
_level2.py
→
tests/m
bi
/test_m
bi
_level2.py
View file @
1941034d
...
...
@@ -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.m
sc
.level2
import
Level2DataApi
from
csst_dfs_api.m
bi
.level2
import
Level2DataApi
class
MSCLevel2DataTestCase
(
unittest
.
TestCase
):
...
...
tests/m
sc
/test_m
sc
_level2co.py
→
tests/m
bi
/test_m
bi
_level2co.py
View file @
1941034d
...
...
@@ -2,7 +2,7 @@ import os
import
unittest
from
astropy.io
import
fits
from
csst_dfs_api.m
sc
.level2co
import
Level2CoApi
from
csst_dfs_api.m
bi
.level2co
import
Level2CoApi
class
MSCLevel2CoDataTestCase
(
unittest
.
TestCase
):
...
...
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