Skip to content

Commit

Permalink
Merge b292d5a into e8b03fc
Browse files Browse the repository at this point in the history
  • Loading branch information
FaroutYLq committed Oct 17, 2022
2 parents e8b03fc + b292d5a commit a07fdb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions strax/processing/peak_merging.py
Expand Up @@ -174,8 +174,8 @@ def add_lone_hits(peaks, lone_hits, to_pe, n_top_channels=0):
p['area'] += lh_area
p['area_per_channel'][lh_i['channel']] += lh_area

# Add lone hit as delta pulse to waveforms:
index = (p['time'] - lh_i['time'])//p['dt']
# Add lone hit as delta pulse to waveform:
index = (lh_i['time'] - p['time'])//p['dt']
p['data'][index] += lh_area

if n_top_channels > 0:
Expand Down

0 comments on commit a07fdb8

Please sign in to comment.