From 2697996d3b13021d2a3a45837561a69b3c5ae125 Mon Sep 17 00:00:00 2001 From: Isaac Berrios <60835780+itberrios@users.noreply.github.com> Date: Sun, 31 Mar 2024 17:32:53 -0500 Subject: [PATCH] Update angle_estimation.py The numpy array 'steering_vectors' will now be populated with np.complex64 instead of np.complex which was depreciated in numpy 1.20. --- mmwave/dsp/angle_estimation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mmwave/dsp/angle_estimation.py b/mmwave/dsp/angle_estimation.py index 19e0d87f..d955aae1 100644 --- a/mmwave/dsp/angle_estimation.py +++ b/mmwave/dsp/angle_estimation.py @@ -526,7 +526,7 @@ def gen_steering_vec(ang_est_range, ang_est_resolution, num_ant): real = np.cos(mag) imag = np.sin(mag) - steering_vectors[kk, jj] = np.complex(real, imag) + steering_vectors[kk, jj] = np.complex64(real + 1j*imag) return [num_vec, steering_vectors]