From cef91458e42ca52d3400175f22390e2545c3dd6b Mon Sep 17 00:00:00 2001 From: Matteo Bachetti Date: Tue, 1 Jun 2021 00:08:17 +0200 Subject: [PATCH] Fix detector_id filtering --- hendrics/fake.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hendrics/fake.py b/hendrics/fake.py index 230910d1..e96273e7 100644 --- a/hendrics/fake.py +++ b/hendrics/fake.py @@ -764,12 +764,7 @@ def main(args=None): event_list, info = filter_for_deadtime( event_list, deadtime, dt_sigma=deadtime_sigma, return_all=True ) - if ( - hasattr(event_list, "detector_id") - and event_list.detector_id is not None - ): - event_list.detector_id = event_list.detector_id[info.uf_mask] - assert event_list.detector_id.size == event_list.time.size + log.info("{} events after filter".format(len(event_list.time))) prior = np.zeros_like(event_list.time)