Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ludwigc committed Nov 25, 2024
1 parent 8bbcb25 commit 39e2f43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion metabolabpy/nmr/nmrData.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def add_peak(self, start_end=np.array([], dtype='float64'), peak_label='', n_pro
self.peak_max = np.append(self.peak_max, np.max(spc))
self.peak_max_points = np.append(self.peak_max_points, start_peak_points - max_pos)
self.peak_max_ppm = np.append(self.peak_max_ppm, self.points2ppm(start_peak_points - max_pos))
self.peak_int = np.append(self.peak_int, sum(spc) - np.mean([spc[0], spc[-1]]))
self.peak_int = np.append(self.peak_int, sum(spc - np.mean([spc[0], spc[-1]])))
sort_idx = np.argsort(self.start_peak)[::-1]
self.start_peak = self.start_peak[sort_idx]
self.end_peak = self.end_peak[sort_idx]
Expand Down

0 comments on commit 39e2f43

Please sign in to comment.