Skip to content

Commit

Permalink
small order change in peakfinder
Browse files Browse the repository at this point in the history
  • Loading branch information
jvavrek committed May 6, 2021
1 parent 519fb44 commit 9796068
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion becquerel/core/peakfinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def find_peaks(self, xmin=None, xmax=None, min_snr=2, max_num=40):
raise PeakFinderError("Must keep at least 1 peak, not {}".format(max_num))

# find maxima
peak = (self.snr[2:] <= self.snr[1:-1]) & (self.snr[:-2] < self.snr[1:-1])
peak = (self.snr[:-2] < self.snr[1:-1]) & (self.snr[1:-1] >= self.snr[2:])
peak = np.append(False, peak)
peak = np.append(peak, False)
# select peaks using SNR and centroid criteria
Expand Down

0 comments on commit 9796068

Please sign in to comment.