From bbba04a187dd09fab160bb2ddf5735c5b8c03d87 Mon Sep 17 00:00:00 2001 From: "trevor.stout" Date: Mon, 20 Apr 2026 17:42:22 -0400 Subject: [PATCH 1/3] Updated slope definitions to be consistent with other software --- batbot/spectrogram/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/batbot/spectrogram/__init__.py b/batbot/spectrogram/__init__.py index bf51efb..9e6ed24 100644 --- a/batbot/spectrogram/__init__.py +++ b/batbot/spectrogram/__init__.py @@ -1114,9 +1114,9 @@ def extract_contour_keypoints( 'slope/mid[avg].y_px/x_px': float(np.mean(der1[knee_idx : heel_idx + 1])), 'slope/lo[avg].y_px/x_px': float(np.mean(der1[heel_idx:])), 'slope[box].y_px/x_px': -float((y_[-1] - y_[0]) / (x_[-1] - x_[0] + 1e-10)), - 'slope/hi[box].y_px/x_px': -float((y_[fc_idx] - y_[0]) / (x_[fc_idx] - x_[0] + 1e-10)), + 'slope/hi[box].y_px/x_px': -float((y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10)), 'slope/lo[box].y_px/x_px': -float( - (y_[-1] - y_[fc_idx]) / (x_[-1] - x_[fc_idx] + 1e-10) + (y_[fc_idx] - y_[knee_idx]) / (x_[fc_idx] - x_[knee_idx] + 1e-10) ), } From 6cf8199a1bfa402d28d9af85027a2d3246bfe372 Mon Sep 17 00:00:00 2001 From: "trevor.stout" Date: Mon, 20 Apr 2026 17:45:48 -0400 Subject: [PATCH 2/3] Increment version --- batbot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/batbot/__init__.py b/batbot/__init__.py index 585ce0a..a432684 100644 --- a/batbot/__init__.py +++ b/batbot/__init__.py @@ -33,7 +33,7 @@ from batbot import spectrogram # NOQA -VERSION = '0.1.3' +VERSION = '0.1.4' version = VERSION __version__ = VERSION From 1c808ddb6a51e862278db31b07e599e9cec826fd Mon Sep 17 00:00:00 2001 From: "trevor.stout" Date: Mon, 20 Apr 2026 17:47:58 -0400 Subject: [PATCH 3/3] Linting --- batbot/spectrogram/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/batbot/spectrogram/__init__.py b/batbot/spectrogram/__init__.py index 9e6ed24..255c1fa 100644 --- a/batbot/spectrogram/__init__.py +++ b/batbot/spectrogram/__init__.py @@ -1114,7 +1114,9 @@ def extract_contour_keypoints( 'slope/mid[avg].y_px/x_px': float(np.mean(der1[knee_idx : heel_idx + 1])), 'slope/lo[avg].y_px/x_px': float(np.mean(der1[heel_idx:])), 'slope[box].y_px/x_px': -float((y_[-1] - y_[0]) / (x_[-1] - x_[0] + 1e-10)), - 'slope/hi[box].y_px/x_px': -float((y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10)), + 'slope/hi[box].y_px/x_px': -float( + (y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10) + ), 'slope/lo[box].y_px/x_px': -float( (y_[fc_idx] - y_[knee_idx]) / (x_[fc_idx] - x_[knee_idx] + 1e-10) ),