Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Nov 18, 2024
1 parent 73d7b2b commit 5b8a662
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions straxen/plugins/peaks/peak_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ def compute(self, peaklets, merged_s2s):
_merged_s2["time"] = merged_s2s["time"]
_merged_s2["endtime"] = strax.endtime(merged_s2s)

# TODO: We have to make sure that the sorting here is the same to in the Peaks plugin
# because maybe different peaklets can have same time
_result = strax.sort_by_time(np.concatenate([_peaklets[indices == -1], _merged_s2]))

if self.merge_without_s1:
Expand Down

0 comments on commit 5b8a662

Please sign in to comment.