Skip to content

Commit

Permalink
fixed trim test for rmse
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed May 8, 2017
1 parent 6739225 commit cbb4303
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_effects.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,12 +154,12 @@ def __test(y, top_db, ref, trim_duration):
assert np.allclose(yt, y[fidx])

# Verify logamp
rms = librosa.feature.rmse(librosa.to_mono(yt))
rms = librosa.feature.rmse(y=librosa.to_mono(yt), center=False)
logamp = librosa.logamplitude(rms**2, ref=ref, top_db=None)
assert np.all(logamp > - top_db)

# Verify logamp
rms_all = librosa.feature.rmse(librosa.to_mono(y)).squeeze()
rms_all = librosa.feature.rmse(y=librosa.to_mono(y)).squeeze()
logamp_all = librosa.logamplitude(rms_all**2, ref=ref,
top_db=None)

Expand Down

0 comments on commit cbb4303

Please sign in to comment.