Skip to content

Commit

Permalink
bugfix for tcm pulser where channel was incorrectly hardcoded
Browse files Browse the repository at this point in the history
  • Loading branch information
ggmarshall committed Nov 2, 2023
1 parent 8795051 commit d0567e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pygama/pargen/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ def get_tcm_pulser_ids(tcm_file, channel, multiplicity_threshold):
ids = data.query(f"array_id=={channel} and evt_number in @high_mult_events")[
"array_idx"
].to_numpy()
mask = np.zeros(len(data.query(f"array_id==1104000")), dtype="bool")
mask = np.zeros(len(data.query(f"array_id=={channel}")), dtype="bool")
mask[ids] = True
return ids, mask

0 comments on commit d0567e1

Please sign in to comment.