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
c8a74c70
Commit
c8a74c70
authored
Oct 28, 2022
by
BO ZHANG
🏀
Browse files
deleted usages of dm.set_detectors()
parent
b68b1d88
Changes
1
Show whitespace changes
Inline
Side-by-side
tests/test_data_manager.py
View file @
c8a74c70
...
...
@@ -17,10 +17,12 @@ from csst_common.params import CSST_PARAMS as CP
class
TestCsstMsDataManager
(
unittest
.
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
)
self
.
dm_sls
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"sls"
,
dir_l1
=
"."
,
exposure_id
=
100
)
self
.
dm_mbi
.
set_detectors
(
detectors
=
None
)
self
.
dm_sls
.
set_detectors
(
detectors
=
None
)
self
.
dm_mbi
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"mbi"
,
dir_l1
=
"."
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
self
.
dm_sls
=
CsstMsDataManager
.
quickstart
(
ver_sim
=
"C5.2"
,
datatype
=
"sls"
,
dir_l1
=
"."
,
exposure_id
=
100
,
dfs_mode
=
False
,
dfs_node
=
"kmust"
)
self
.
dm_mbi
.
target_detectors
=
None
self
.
dm_sls
.
target_detectors
=
None
def
test_mbi_data_existence
(
self
):
self
.
assertTrue
(
self
.
dm_mbi
.
available_detectors
==
CP
[
"mbi"
][
"detectors"
])
...
...
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