Skip to content

Commit

Permalink
Fix detector_id filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobachetti committed May 31, 2021
1 parent c5bfa2a commit cef9145
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hendrics/fake.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cef9145

Please sign in to comment.