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
81018ac8
Commit
81018ac8
authored
Aug 30, 2022
by
BO ZHANG
🏀
Browse files
updated data manager
parent
721752ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
csst_common/data_manager.py
View file @
81018ac8
...
@@ -232,11 +232,14 @@ class CsstMbiDataManager:
...
@@ -232,11 +232,14 @@ class CsstMbiDataManager:
try
:
try
:
# assert detectors is a subset of available detectors
# assert detectors is a subset of available detectors
assert
set
(
detectors
).
issubset
(
set
(
self
.
available_detectors
))
assert
set
(
detectors
).
issubset
(
set
(
self
.
available_detectors
))
self
.
target_detectors
=
list
(
detectors
)
except
AssertionError
as
ae
:
except
AssertionError
as
ae
:
print
(
"@DM: available detector IDs are "
,
self
.
available_detectors
)
print
(
"@DM: available detector are "
,
self
.
available_detectors
)
print
(
"@DM: target detector IDs are "
,
detectors
)
print
(
"@DM: target detector are "
,
detectors
)
print
(
"@DM: final target detectors are "
,
set
(
detectors
)
&
set
(
self
.
available_detectors
))
# raise ae
# raise ae
self
.
target_detectors
=
detectors
self
.
target_detectors
=
set
(
detectors
)
&
set
(
self
.
available_detectors
)
print
(
"final target detector IDs are "
,
self
.
target_detectors
)
print
(
"final target detector IDs are "
,
self
.
target_detectors
)
return
return
...
...
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