Skip to content

Commit 96beca1

Browse files
authored
Remove usage of deprecated np.complex
np.complex is just an alias to python builtin `complex` and is deprecated as of numpy 1.20.
1 parent 47bbb83 commit 96beca1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commpy/channels.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
from __future__ import division, print_function # Python 2 compatibility
2121

22-
from numpy import complex, abs, sqrt, sum, zeros, identity, hstack, einsum, trace, kron, absolute, fromiter, array, exp, \
22+
from numpy import abs, sqrt, sum, zeros, identity, hstack, einsum, trace, kron, absolute, fromiter, array, exp, \
2323
pi, cos
2424
from numpy.random import randn, random, standard_normal
2525
from scipy.linalg import sqrtm

0 commit comments

Comments
 (0)