Skip to content

Commit 5e04bc7

Browse files
author
trevor.stout
committed
Linting
1 parent c13fa0f commit 5e04bc7

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

batbot/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,11 @@ def example():
303303
output_stem = join('output', splitext(basename(wav_filepath))[0])
304304
start_time = time.time()
305305
results = pipeline(
306-
wav_filepath, out_file_stem=output_stem, fast_mode=False, force_overwrite=True, plot_uncompressed_amplitude=True,
306+
wav_filepath,
307+
out_file_stem=output_stem,
308+
fast_mode=False,
309+
force_overwrite=True,
310+
plot_uncompressed_amplitude=True,
307311
)
308312
stop_time = time.time()
309313
print('Example pipeline completed in {} seconds.'.format(stop_time - start_time))

batbot/spectrogram/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,9 @@ def extract_contour_keypoints(
11151115
'slope/lo[avg].y_px/x_px': float(np.mean(der1[heel_idx:])),
11161116
'slope[box].y_px/x_px': -float((y_[-1] - y_[0]) / (x_[-1] - x_[0] + 1e-10)),
11171117
'slope/hi[box].y_px/x_px': -float((y_[fc_idx] - y_[0]) / (x_[fc_idx] - x_[0] + 1e-10)),
1118-
'slope/lo[box].y_px/x_px': -float((y_[-1] - y_[fc_idx]) / (x_[-1] - x_[fc_idx] + 1e-10)),
1118+
'slope/lo[box].y_px/x_px': -float(
1119+
(y_[-1] - y_[fc_idx]) / (x_[-1] - x_[fc_idx] + 1e-10)
1120+
),
11191121
}
11201122

11211123
return path_, points, slopes

0 commit comments

Comments
 (0)