Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gesellkammer committed Feb 14, 2024
1 parent a465ac8 commit 4e9d940
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testci/test2.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ def pyinPitchTrack(samples: np.ndarray,
TODO
"""
if 'pyin:pyin' not in vamp.listPlugins():
raise RuntimeError(f"Vamp plugin 'pyin' not found. Available plugins: {vamp.listPlugins()}")
allplugins = vamp.list_plugins()
if 'pyin:pyin' not in allplugins:
raise RuntimeError(f"Vamp plugin 'pyin' not found. Available plugins: {allplugins}")

if fftSize < 2048:
raise ValueError("The pyin vamp plugin does not accept fft size less than 2048")
Expand Down

0 comments on commit 4e9d940

Please sign in to comment.