Skip to content

Commit bdae69f

Browse files
author
trevor.stout
committed
Linting
1 parent 54126f0 commit bdae69f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

batbot/spectrogram/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,9 @@ def extract_contour_keypoints(
11261126
'slope/mid[avg].y_px/x_px': float(np.mean(der1[knee_idx : heel_idx + 1])),
11271127
'slope/lo[avg].y_px/x_px': float(np.mean(der1[heel_idx:])),
11281128
'slope[box].y_px/x_px': -float((y_[-1] - y_[0]) / (x_[-1] - x_[0] + 1e-10)),
1129-
'slope/hi[box].y_px/x_px': -float((y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10)),
1129+
'slope/hi[box].y_px/x_px': -float(
1130+
(y_[knee_idx] - y_[0]) / (x_[knee_idx] - x_[0] + 1e-10)
1131+
),
11301132
'slope/lo[box].y_px/x_px': -float(
11311133
(y_[fc_idx] - y_[knee_idx]) / (x_[fc_idx] - x_[knee_idx] + 1e-10)
11321134
),

0 commit comments

Comments
 (0)