From a021395b85632c43a18bd41e5fb8333d7795b171 Mon Sep 17 00:00:00 2001 From: Hugo Ortiz Date: Sun, 10 Mar 2024 12:32:08 -0400 Subject: [PATCH] np.complex deprecated; now using complex --- array_processing/tools/array_characterization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/array_processing/tools/array_characterization.py b/array_processing/tools/array_characterization.py index 1cba5dc..e2b35b3 100644 --- a/array_processing/tools/array_characterization.py +++ b/array_processing/tools/array_characterization.py @@ -398,10 +398,10 @@ def quadraticEqn(a, b, c): # note np.sqrt(-1) = nan, so force complex argument if b: # std. sub-branch - q = -0.5*(b + np.sign(b) * np.sqrt(np.complex(b * b - 4 * a * c))) + q = -0.5*(b + np.sign(b) * np.sqrt(complex(b * b - 4 * a * c))) else: # b = 0 sub-branch - q = -np.sqrt(np.complex(-a * c)) + q = -np.sqrt(complex(-a * c)) # complex coefficient branch else: if np.real(np.conj(b) * np.sqrt(b * b - 4 * a * c)) >= 0: