Skip to content

Commit

Permalink
fixed a bug in a-weighting test
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Feb 15, 2015
1 parent f01fc72 commit 9513637
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_time_frequency.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ def __test(min_db):
a_range = librosa.A_weighting(np.linspace(2e1, 2e4),
min_db=min_db)
# Check that the db cap works
assert not np.any(a_range < min_db)
if min_db is not None:
assert not np.any(a_range < min_db)

for min_db in [None, -40, -80]:
yield __test, min_db

0 comments on commit 9513637

Please sign in to comment.