Skip to content

Commit

Permalink
Bump merged_s2s version following AxFoundation/strax#722 (#1179)
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed May 9, 2023
1 parent 78bd324 commit b706a85
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions straxen/plugins/merged_s2s/merged_s2s.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class MergedS2s(strax.OverlapWindowPlugin):
Merge together peaklets if peak finding favours that they would
form a single peak instead.
"""
__version__ = '1.0.1'
__version__ = '1.0.2'

depends_on = ('peaklets', 'peaklet_classification', 'lone_hits')
data_kind = 'merged_s2s'
Expand Down Expand Up @@ -102,7 +102,10 @@ def compute(self, peaklets, lone_hits):
max_gap=max_gap,
max_area=max_area,
)
assert 'data_top' in peaklets.dtype.names
if (end_merge_at - start_merge_at).min() <= 1:
raise ValueError('Found merging only 1 peak')

assert 'data_top' in peaklets.dtype.names

merged_s2s = strax.merge_peaks(
peaklets,
Expand Down

0 comments on commit b706a85

Please sign in to comment.