Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenjolly committed Jun 19, 2024
1 parent 9bf9c10 commit 9c0f53a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/audio_offset_finder_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,14 +63,15 @@ def test_find_offset_between_files():
assert exception.value.args[0].startswith("FFMpeg failed:\n")
assert exception.value.args[0].endswith("No such file or directory")

results = find_offset_between_files(path("r4.ogg"), path("r4_excerpt.ogg"), hop_length=128, trim=20*60)
results = find_offset_between_files(path("r4.ogg"), path("r4_excerpt.ogg"), hop_length=128, trim=20 * 60)
assert results["time_offset"] == pytest.approx(334.608)
assert results["standard_score"] == pytest.approx(43.37, rel=1e-2)

results = find_offset_between_files(path("r4.ogg"), path("r4_excerpt2.ogg"), hop_length=128, trim=20*60)
results = find_offset_between_files(path("r4.ogg"), path("r4_excerpt2.ogg"), hop_length=128, trim=20 * 60)
assert results["time_offset"] == pytest.approx(726.4)
assert results["standard_score"] == pytest.approx(59.23, rel=1e-2)


def test_std_mfcc():
m = np.array([[2, 3, 4], [4, 5, 5]])
s1 = np.std([2, 4])
Expand Down

0 comments on commit 9c0f53a

Please sign in to comment.