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
d41f24f8
Commit
d41f24f8
authored
Apr 22, 2022
by
Wei Shoulin
Browse files
brick
parent
e76c47ac
Changes
40
Hide whitespace changes
Inline
Side-by-side
tests/facility/test_facility_level2producer.py
0 → 100644
View file @
d41f24f8
import
os
import
unittest
from
astropy.io
import
fits
from
csst_dfs_api.facility.level2producer
import
Level2ProducerApi
class
FacilityLevel2ProducerTestCase
(
unittest
.
TestCase
):
def
setUp
(
self
):
self
.
api
=
Level2ProducerApi
()
def
test_find
(
self
):
recs
=
self
.
api
.
find
(
module_id
=
"MSC"
,
limit
=
0
)
print
(
'find:'
,
recs
)
def
test_get
(
self
):
rec
=
self
.
api
.
get
(
id
=
17
)
print
(
'get:'
,
rec
)
rec
=
self
.
api
.
get
(
obs_id
=
'0000017'
)
print
(
'get:'
,
rec
)
def
test_update_proc_status
(
self
):
rec
=
self
.
api
.
update_proc_status
(
obs_id
=
'0000017'
,
status
=
3
,
)
print
(
'update_proc_status:'
,
rec
)
def
test_update_qc0_status
(
self
):
rec
=
self
.
api
.
update_qc0_status
(
obs_id
=
'0000017'
,
status
=
3
,
)
print
(
'update_qc0_status:'
,
rec
)
tests/test_facility_observation.py
→
tests/
facility/
test_facility_observation.py
View file @
d41f24f8
File moved
tests/test_ifs_cal_merge.py
→
tests/
ifs/
test_ifs_cal_merge.py
View file @
d41f24f8
File moved
tests/test_ifs_level0.py
→
tests/
ifs/
test_ifs_level0.py
View file @
d41f24f8
File moved
tests/test_ifs_level0_prc.py
→
tests/
ifs/
test_ifs_level0_prc.py
View file @
d41f24f8
File moved
tests/test_ifs_level1.py
→
tests/
ifs/
test_ifs_level1.py
View file @
d41f24f8
File moved
tests/test_ifs_level1_prc.py
→
tests/
ifs/
test_ifs_level1_prc.py
View file @
d41f24f8
File moved
tests/test_msc_cal_merge.py
→
tests/
msc/
test_msc_cal_merge.py
View file @
d41f24f8
File moved
tests/test_msc_level0.py
→
tests/
msc/
test_msc_level0.py
View file @
d41f24f8
File moved
tests/test_msc_level0_prc.py
→
tests/
msc/
test_msc_level0_prc.py
View file @
d41f24f8
File moved
tests/test_msc_level1.py
→
tests/
msc/
test_msc_level1.py
View file @
d41f24f8
File moved
tests/test_msc_level1_prc.py
→
tests/
msc/
test_msc_level1_prc.py
View file @
d41f24f8
File moved
tests/test_msc_level2_catalog.py
→
tests/
msc/
test_msc_level2_catalog.py
View file @
d41f24f8
File moved
tests/test_sls_cal_merge.py
→
tests/
sls/
test_sls_cal_merge.py
View file @
d41f24f8
File moved
tests/test_sls_level0.py
→
tests/
sls/
test_sls_level0.py
View file @
d41f24f8
File moved
tests/test_sls_level0_prc.py
→
tests/
sls/
test_sls_level0_prc.py
View file @
d41f24f8
File moved
tests/test_sls_level1.py
→
tests/
sls/
test_sls_level1.py
View file @
d41f24f8
File moved
tests/test_sls_level1_prc.py
→
tests/
sls/
test_sls_level1_prc.py
View file @
d41f24f8
File moved
tests/test_sls_level2_spectra.py
→
tests/
sls/
test_sls_level2_spectra.py
View file @
d41f24f8
File moved
tools/csst-dfs-api-install.sh
View file @
d41f24f8
...
...
@@ -2,6 +2,7 @@ echo "CSST-DFS-API Installer"
echo
"=============================================="
version
=
""
user
=
""
pip uninstall csst-dfs-api-local
-y
pip uninstall csst-dfs-api-cluster
-y
...
...
@@ -12,14 +13,14 @@ pip uninstall csst-dfs-api -y
echo
"Installing CSST DFS API with Version:
$version
"
echo
"➡==============================================="
echo
" 🛰 1️⃣/5️⃣"
pip
install
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git
$version
pip
install
$user
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-commons.git
$version
echo
" 🛰 2️⃣/5️⃣"
pip
install
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git
$version
pip
install
$user
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-proto-py.git
$version
echo
" 🛰 3️⃣/5️⃣"
pip
install
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git
$version
pip
install
$user
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-local.git
$version
echo
" 🛰 4️⃣/5️⃣"
pip
install
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git
$version
pip
install
$user
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api-cluster.git
$version
echo
" 🛰 5️⃣/5️⃣"
pip
install
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git
$version
pip
install
$user
git+https://hub.fastgit.org/astronomical-data-processing/csst-dfs-api.git
$version
echo
"➡==============================================="
echo
"🇨🇳🇨🇳🇨🇳🚀🚀🚀Done!"
\ No newline at end of file
Prev
1
2
Next
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