-
Notifications
You must be signed in to change notification settings - Fork 93
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
Convertion to INT Crashes pyfdax #230
Comments
Thanks for the warm words! If the software crashes, there is obviously something wrong with the software itself :-) I have two ideas about the cause of the crash (although I cannot reproduce it):
Could you please check your pyfda version, attach your filter file (also for debugging the filter import routines) and retry designing your filter with integer coefficients without importing a filter file? Thanks a lot for your help! |
I'm sorry - version is 0.7.1 I believe there is a special function hidden on the "b,a" tab that is randomly (I have not found the trigger yet, but keep trying :-) .) activated when someone wants integer coefficients. Traceback (most recent call last): Nevertheless, thanks to this nice tool, I am making progress in understanding and developing and digital filters. Thanks! C:\Python310\lib\site-packages\pyfda User Module Dir None pyFDA Config C:\Users\Tarik.pyfda\pyfda.conf External modules and libraries |
Thanks, I can reproduce the crash! |
I had to rewrite the part for reading and writing filters as numpy arrays with irregular shapes ("ragged arrays") are discouraged / deprecated (https://numpy.org/devdocs/release/1.24.0-notes.html) and have become difficult to handle. Therefore, pyfda v0.8.0 no longer crashes but it also cannot read the old filter format anymore. Sorry aboout that! |
Good day! I have the same problem. Version: 0.8.2 (Windows). When I click on the save icon the program closes. |
Thanks for reporting, probably you're right and the bug is in the same region of code. I'll take a look! |
Fixed in latest, please test! Version 0.8.3 will be released today or tomorrow. |
pyFDA is a remarkably beautiful and powerful tool. Thank you for making it available to the public!
Although it worked well for many design steps and filter evaluation, at the moment it crashes when I ask for integer coefficients, as follows:
Traceback (most recent call last):
File "C:\Python310\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 840, in fx_base2qdict
self.qdict2ui()
File "C:\Python310\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 795, in qdict2ui
self.refresh_table()
File "C:\Python310\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 630, in refresh_table
self._refresh_table_item(row, col)
File "C:\Python310\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 552, in _refresh_table_item
if self.ba_q[col + 2][row] > 0:
TypeError: 'int' object is not subscriptable
Steps:
load filter from config file
update all fields (Like Fbp, Fsb, Fc, etc. by clicking into it, as the fields are not updated by loading the filter data (A minor bug in my mind)
Set Filter design class , as this is not part of saved / loaded data
Design Filter
Switching to tab "b, a"
Selecting in the box from "float" to "DEC" -> Crash
I can't rule out the possibility that I'm doing something wrong, but it would be nice if a misoperation ended with an error message rather than a crash.
The text was updated successfully, but these errors were encountered: