Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUILD: Bump numpy version to>=1.20.0,<2.3 #5557

Merged
merged 3 commits into from
Dec 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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)

Check warning on line 498 in src/ansys/aedt/core/visualization/advanced/rcs_visualization.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/advanced/rcs_visualization.py#L498

Added line #L498 was not covered by tests
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 @@
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)

Check warning on line 1044 in src/ansys/aedt/core/visualization/post/solution_data.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/aedt/core/visualization/post/solution_data.py#L1042-L1044

Added lines #L1042 - L1044 were not covered by tests
if window:
timewin = np.hanning(len(freq))

Expand Down
Loading