From f0643c0bfc4ea8148341fae65b8e664f903c57fc Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Thu, 9 Jan 2025 16:18:36 -0500 Subject: [PATCH] =?UTF-8?q?use=20<=3D=20in=20err=20=E2=89=A4=20threshold?= =?UTF-8?q?=20tests=20for=20do=5Fharminv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/bands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bands.cpp b/src/bands.cpp index f1401db42..d45402736 100644 --- a/src/bands.cpp +++ b/src/bands.cpp @@ -134,7 +134,7 @@ int do_harminv(complex *data, int n, double dt, double fmin, double fmax harminv_get_amplitude(&aa, hd, fsort[i]); double amp = abs(aa); if (f >= fmin && f <= fmax && abs(harminv_get_Q(hd, fsort[i])) > Q_thresh && - err < err_thresh && err < rel_err_thresh * min_err && amp > amp_thresh && + err <= err_thresh && err <= rel_err_thresh * min_err && amp > amp_thresh && amp > rel_amp_thresh * max_amp) { fsort[j++] = fsort[i]; }