You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
plotspectrum_V4a.py", line 126, in
bigarray = np.zeros(1474560,dtype=np.complex)
File "/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
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.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'complex_'?
line 126 changed to
bigarray = np.zeros(1474560,dtype=np.complex128)
and all appears to OK.
cheers, Graham
The text was updated successfully, but these errors were encountered:
plotspectrum_V4a.py", line 126, in
bigarray = np.zeros(1474560,dtype=np.complex)
File "/numpy/init.py", line 324, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'complex'.
np.complex
was a deprecated alias for the builtincomplex
. To avoid this error in existing code, usecomplex
by itself. Doing thiswill not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use
np.complex128
here.The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'complex_'?
line 126 changed to
bigarray = np.zeros(1474560,dtype=np.complex128)
and all appears to OK.
cheers, Graham
The text was updated successfully, but these errors were encountered: