Skip to content

Commit

Permalink
BUILD: Bump numpy version to>=1.20.0,<2.3 (#5557)
Browse files Browse the repository at this point in the history
  • Loading branch information
SMoraisAnsys authored Dec 13, 2024
1 parent 5ea126b commit 7a528df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions src/ansys/aedt/core/visualization/post/solution_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 7a528df

Please sign in to comment.