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

updated data manager

parent 721752ca
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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