From 39e2f43867cd770eb6c45510f1fb4f77ba649040 Mon Sep 17 00:00:00 2001 From: Christian Ludwig Date: Mon, 25 Nov 2024 23:16:48 +0000 Subject: [PATCH] update --- metabolabpy/nmr/nmrData.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metabolabpy/nmr/nmrData.py b/metabolabpy/nmr/nmrData.py index 4a926c4..f33db7f 100644 --- a/metabolabpy/nmr/nmrData.py +++ b/metabolabpy/nmr/nmrData.py @@ -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]