Skip to content

Commit

Permalink
Debug when select_peaks_indices is array
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Dec 19, 2024
1 parent c27641b commit 1f7fd4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strax/processing/peak_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def compute_center_time_widths(peaks, select_peaks_indices=None):
in which case compute for all peaks
"""
if not len(peaks) or (not select_peaks_indices and select_peaks_indices is not None):
if not len(peaks) or (select_peaks_indices is not None and len(select_peaks_indices)):
return

if select_peaks_indices is None:
Expand Down

0 comments on commit 1f7fd4c

Please sign in to comment.