Skip to content

Commit

Permalink
fixed broken ifgram test for ref_power
Browse files Browse the repository at this point in the history
  • Loading branch information
bmcfee committed Dec 7, 2016
1 parent 7637b42 commit 21b2e18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def __test(infile):
hop_length=DATA['hop_length'][0, 0].astype(int),
win_length=DATA['hann_w'][0, 0].astype(int),
sr=DATA['sr'][0, 0].astype(int),
ref=0.0,
ref_power=0.0,
clip=False,
center=False)

Expand Down Expand Up @@ -266,7 +266,7 @@ def test_ifgram_if():

def __test(ref, clip):

F, D = librosa.ifgram(y, sr=sr, ref=ref, clip=clip)
F, D = librosa.ifgram(y, sr=sr, ref_power=ref, clip=clip)

if clip:
assert np.all(0 <= F) and np.all(F <= 0.5 * sr)
Expand Down

0 comments on commit 21b2e18

Please sign in to comment.