chipmuenk / pyfda

Python Filter Design Analysis Tool
http://chipmuenk.github.io/
MIT License
644 stars 94 forks source link

Deprecation Warning "ndarray from ragged nested sequences" #180

Closed chipmuenk closed 3 years ago

chipmuenk commented 4 years ago

During startup, the following deprecation warning is issued:

[   INFO] [pyfda.input_widgets.input_specs:303] Start filter design using method
        'Equiripple.LPman'
C:\Users\Chris\Anaconda3\lib\site-packages\numpy\lib\type_check.py:461: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  x = _nx.array(x, subok=True, copy=copy)
[   INFO] [pyfda.input_widgets.input_specs:336] Designed filter with order = 10
d:\daten\design\python\git\pyfda\pyfda\input_widgets\input_pz.py:481: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  self.zpk = np.array(fb.fil[0]['zpk'])# this enforces a deep copy
[   INFO] [pyfda.pyfdax:291] Logging to C:\Users\Chris\AppData\Local\Temp\.pyfda\pyfda.log
chipmuenk commented 3 years ago

Fixed by #182