Skip to content
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

Save/Load Table to/from file #240

Closed
escherstair opened this issue Sep 21, 2023 · 1 comment
Closed

Save/Load Table to/from file #240

escherstair opened this issue Sep 21, 2023 · 1 comment

Comments

@escherstair
Copy link

I'm not sure I understood how Save/Load Table to/from file is expected to work.

  1. I open pyfda and I select "b,a" tab

  2. I select FIR type and I leave everyhting else as it is. I see some default coefficients
    immagine

  3. I click on "Save table to file" and I get a csv file with the coefficients

  4. I click on "Load table from file" and I select the file just saved

  5. pyfda crashes immediately with the following error

[   INFO] [pyfda.libs.pyfda_io_lib:649] Parsing CSV data with header = 'False'
        Delimiter = ',' | Lineterm. = '\r\n' | quotechar = ' " as 'TextIOWrapper'
[   INFO] [pyfda.libs.pyfda_io_lib:721] Building transposed table with 11 row(s) and 1 columns.
[   INFO] [pyfda.libs.pyfda_io_lib:1003] Imported file "C:/Users/<username>/Desktop/ggg.csv"
        Type: ndarray of float64, shape = (r11 x c1)
        [5.10699577e-05]
        [0.0005107]
        [0.00229815]
        [0.00612839]
        [0.01072469]
         ...
Traceback (most recent call last):
  File "C:\Users\<username>\AppData\Local\Programs\Python\Python39\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 749, in _import
    self._filter_type(ftype='FIR')
  File "C:\Users\<username>\AppData\Local\Programs\Python\Python39\lib\site-packages\pyfda\input_widgets\input_coeffs.py", line 525, in _filter_type
    self.ba[1][0] = 1.
IndexError: index 0 is out of bounds for axis 0 with size 0
@chipmuenk
Copy link
Owner

Fixed in latest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants