We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cf8199 commit 1c808ddCopy full SHA for 1c808dd
1 file changed
batbot/spectrogram/__init__.py
@@ -1114,7 +1114,9 @@ def extract_contour_keypoints(
1114
'slope/mid[avg].y_px/x_px': float(np.mean(der1[knee_idx : heel_idx + 1])),
1115
'slope/lo[avg].y_px/x_px': float(np.mean(der1[heel_idx:])),
1116
'slope[box].y_px/x_px': -float((y_[-1] - y_[0]) / (x_[-1] - x_[0] + 1e-10)),
1117
- '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(
1118
+ (y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10)
1119
+ ),
1120
'slope/lo[box].y_px/x_px': -float(
1121
(y_[fc_idx] - y_[knee_idx]) / (x_[fc_idx] - x_[knee_idx] + 1e-10)
1122
),
0 commit comments