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-pipeline
csst_common
Commits
500a78ec
Commit
500a78ec
authored
Oct 26, 2022
by
BO ZHANG
🏀
Browse files
reconstructed CsstMsDataManager
parent
35519108
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
csst_common/data/csst_params.yml
View file @
500a78ec
...
...
@@ -81,7 +81,7 @@ sim: # simulation
-
C5.1
-
C3
basic
:
all
:
detectors
:
-
1
-
2
...
...
csst_common/data_manager.py
View file @
500a78ec
This diff is collapsed.
Click to expand it.
tests/test_data_manager.py
View file @
500a78ec
...
...
@@ -14,21 +14,6 @@ from csst_common.data_manager import CsstMbiDataManager, CsstMsDataManager
from
csst_common.params
import
CSST_PARAMS
as
CP
# deprecated in some days
class
TestCsstMbiDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
dm
=
CsstMbiDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
dir_l1
=
"."
,
exposure_id
=
100
)
def
test_l0data_existence
(
self
):
self
.
assertTrue
(
self
.
dm
.
available_detectors
==
CP
[
"mbi"
][
"detectors"
])
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm
.
l0_detector
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm
.
l0_log
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm
.
l0_cat
(
6
)))
self
.
assertTrue
(
os
.
path
.
exists
(
self
.
dm
.
l0_crs
(
6
)))
self
.
assertTrue
(
isinstance
(
self
.
dm
.
l1_detector
(
6
,
post
=
"img.fits"
),
str
))
self
.
assertTrue
(
isinstance
(
self
.
dm
.
l1_file
(
name
=
"some_file.ext"
,
comment
=
"a demo file"
),
str
))
class
TestCsstMsDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
)
...
...
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