-
Notifications
You must be signed in to change notification settings - Fork 2k
Changed numpy to scipy since fftpack is in scipy #3069
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
Conversation
Did you get an error with the original code? |
Yeah. It said that it cannot import fftpack from numpy.fft. But with the scipy version, everything works fine. Does gnuradio require a specific numpy version? Also, I couldn't find any documentation on numpy.fft.fftpack. |
It turns out the numpy's The
|
Yeah scipy is one of those optional dependencies. Scripts using scipy are supposed to check for its existence and print a useful error on ImportError. |
The same problem in The
|
@shanejohnpaul Would you want to update this PR to behave the same as what the solution was in https://github.com/gnuradio/gnuradio/pull/2755/files ? Also we will need a CLA from you, not specifically for this minor change, but it will streamline PRs that may have more LOC in the future. Please email bhilburn at gnuradio.org to get the CLA started. |
@devnulling Yes, it should behave the same. The I'm new to PRs, so I have no idea about CLAs. |
It should also be noted that the polar code QA tests fail during "make test" without scipy. |
I'm really no fan of depending on |
I made an issue #3235 for this topic. Agreed we don't want to promote SciPy to being a configure requirement. There are better ways ... |
@shanejohnpaul based on our discussions in #3280 and #3290, it turns out this is the wrong fix. We need to call straight into numpy.fft. I'll close this PR, but still many thanks for submitting |
fftpack is present in scipy not numpy