Commit 81018ac8 authored by BO ZHANG's avatar BO ZHANG 🏀
Browse files

updated data manager

parent 721752ca
......@@ -232,11 +232,14 @@ class CsstMbiDataManager:
try:
# assert detectors is a subset of available detectors
assert set(detectors).issubset(set(self.available_detectors))
self.target_detectors = list(detectors)
except AssertionError as ae:
print("@DM: available detector IDs are ", self.available_detectors)
print("@DM: target detector IDs are ", detectors)
print("@DM: available detector are ", self.available_detectors)
print("@DM: target detector are ", detectors)
print("@DM: final target detectors are ", set(detectors) & set(self.available_detectors))
# raise ae
self.target_detectors = detectors
self.target_detectors = set(detectors) & set(self.available_detectors)
print("final target detector IDs are ", self.target_detectors)
return
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment