-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: "magic number" in vocalpy.spectral.sat should be n_fft
arg
#100
Comments
😳 This is definitely a bug! Thank you for catching it @ralphpeterson. Yes, can you fix that hard-coded 400 in line 97 so that it's vocalpy/src/vocalpy/spectral/sat.py Line 97 in f2a339d
We should also add a unit test that varies this parameter. I can add that in the PR if you make the fix. |
@all-contributors please add @ralphpeterson for bug |
I've put up a pull request to add @ralphpeterson! 🎉 |
n_fft
arg
yep, will fix and submit a pull request |
🙏 thank you Just icymi I'm fixing a couple other things in #108 so you'll want to sync your fork. Very very minor detail but if you don't mind giving your branch a semantically meaningful name like Really appreciating your help! edit: nevermind I lied -- I'm going to hold off on bumping the minimum version of Python until numba supports Python 3.12 Once we get your bugfix in I'll release a new patch version |
I am attempting to compute acoustic features in vocalpy on some sample data and have run into an issue using the
vocalpy.spectral.sat
function.tapers
andwindows
shapes aren't compatible. How are the params being selected forscipy.signal.windows.dpss
here, @NickleDave? It looks like the first argument is window size in the time domain, so maybe 400 is hard coded, as it is the default value ofn_fft
in thesat
function? I confirmed that the function runs locally after changing 400 ton_fft
. Not positive what the other arguments are doing. Happy to fix this if it's a bug, or even happier to be told that this is a simple user error.The text was updated successfully, but these errors were encountered: