Skip to content

np.complex Deprecation

Ian MacMillan requested to merge github/fork/IanAMacMillan/main into main

When using the most recent version of numpy I would get the error:

`np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here.

from the file /wield-control/src/wield/control/SISO/zpk_d2c_c2d.py. I changed all of the mentions of np.complex to "the built-in complex. This is the link to the list of deprecations in numpy 1.20.0

NOTE: I did not change any instances of np.complex128 as this is still a valid numpy scalar type

Merge request reports

Loading