diff --git a/pyproject.toml b/pyproject.toml index 33af53982f2..f61ea78c46b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ unit-tests = [ integration-tests = [ "matplotlib>=3.5.0,<3.10", "mock>=5.1.0,<5.2", - "numpy>=1.20.0,<2", + "numpy>=1.20.0,<2.3", "pandas>=1.1.0,<2.3", "pytest>=7.4.0,<8.4", "pytest-cov>=4.0.0,<6.1", @@ -65,7 +65,7 @@ tests = [ "joblib>=1.0.0,<1.5", "matplotlib>=3.5.0,<3.10", "mock>=5.1.0,<5.2", - "numpy>=1.20.0,<2", + "numpy>=1.20.0,<2.3", "openpyxl>=3.1.0,<3.3", "osmnx>=1.1.0,<2.1", "pandas>=1.1.0,<2.3", @@ -104,7 +104,7 @@ doc = [ ] all = [ "matplotlib>=3.5.0,<3.10", - "numpy>=1.20.0,<2", + "numpy>=1.20.0,<2.3", "openpyxl>=3.1.0,<3.3", "osmnx>=1.1.0,<2.1", "pandas>=1.1.0,<2.3", @@ -120,7 +120,7 @@ all = [ ] installer = [ "matplotlib>=3.5.0,<3.10", - "numpy>=1.20.0,<2", + "numpy>=1.20.0,<2.3", "openpyxl>=3.1.0,<3.3", "osmnx>=1.1.0,<2.1", "pandas>=1.1.0,<2.3", diff --git a/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py b/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py index dd2670248ae..f988d697d27 100644 --- a/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py +++ b/src/ansys/aedt/core/visualization/advanced/rcs_visualization.py @@ -495,7 +495,7 @@ def isar_2d(self): self.__logger.warning("ny should be at least as large as the number of azimuth angles.") nxrng = nangles - iq = np.zeros((ndrng, nxrng), dtype=np.complex_) + iq = np.zeros((ndrng, nxrng), dtype=np.complex128) xshift = (ndrng - nfreq) // 2 yshift = (nxrng - nangles) // 2 iq[xshift : xshift + nfreq, yshift : yshift + nangles] = np.multiply(rdata, winx * winy) diff --git a/src/ansys/aedt/core/visualization/post/solution_data.py b/src/ansys/aedt/core/visualization/post/solution_data.py index 428ce6226e8..37019429b55 100644 --- a/src/ansys/aedt/core/visualization/post/solution_data.py +++ b/src/ansys/aedt/core/visualization/post/solution_data.py @@ -1039,9 +1039,9 @@ def ifft(self, curve_header="NearE", u_axis="_u", v_axis="_v", window=False): temp_e_comp_y = e_real_y + 1j * e_imag_y temp_e_comp_z = e_real_z + 1j * e_imag_z - e_comp_x = np.zeros((len(freq), len(v), len(u)), dtype="complex_") - e_comp_y = np.zeros((len(freq), len(v), len(u)), dtype="complex_") - e_comp_z = np.zeros((len(freq), len(v), len(u)), dtype="complex_") + e_comp_x = np.zeros((len(freq), len(v), len(u)), dtype=np.complex128) + e_comp_y = np.zeros((len(freq), len(v), len(u)), dtype=np.complex128) + e_comp_z = np.zeros((len(freq), len(v), len(u)), dtype=np.complex128) if window: timewin = np.hanning(len(freq))