From c40d416008aaafc05e01a4618fce097936d3e97d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 18 Jun 2024 09:24:38 +0000 Subject: [PATCH 1/5] build: bump numpy from 1.26.4 to 2.0.0 in the minimal group Bumps the minimal group with 1 update: [numpy](https://github.com/numpy/numpy). Updates `numpy` from 1.26.4 to 2.0.0 - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.26.4...v2.0.0) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-major dependency-group: minimal ... Signed-off-by: dependabot[bot] --- minimum_requirements.txt | 2 +- pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/minimum_requirements.txt b/minimum_requirements.txt index b5bc9bbf98..ec5b1f8776 100644 --- a/minimum_requirements.txt +++ b/minimum_requirements.txt @@ -1,6 +1,6 @@ ansys-api-mapdl==0.5.1 importlib-metadata==7.1.0 -numpy==1.26.4 +numpy==2.0.0 platformdirs==4.2.2 psutil==5.9.8 pyansys-tools-versioning==0.5.0 diff --git a/pyproject.toml b/pyproject.toml index a9d96caf6a..af26d92cb9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "importlib-metadata>=4.0", "matplotlib>=3.0.0", # for colormaps for pyvista "numpy>=1.14.0,<1.25.0; python_version < '3.9'", - "numpy>=1.14.0,<2.0.0; python_version >= '3.9'", + "numpy>=1.14.0,<3.0.0; python_version >= '3.9'", "pexpect>=4.8.0 ; platform_system=='Linux'", "protobuf>=3.12.2", # minimum required based on latest ansys-grpc-mapdl "psutil>=5.9.4", From 66d8256b5517d1158d7d07fc2ba4e8381551ae0a Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot Date: Tue, 18 Jun 2024 09:25:40 +0000 Subject: [PATCH 2/5] Adding changelog entry: 3177.miscellaneous.md --- doc/changelog.d/3177.miscellaneous.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/3177.miscellaneous.md diff --git a/doc/changelog.d/3177.miscellaneous.md b/doc/changelog.d/3177.miscellaneous.md new file mode 100644 index 0000000000..fe62702d8c --- /dev/null +++ b/doc/changelog.d/3177.miscellaneous.md @@ -0,0 +1 @@ +build: bump numpy from 1.26.4 to 2.0.0 in the minimal group \ No newline at end of file From 0828a42234c1dc2c888a64b2202624df4ef56cc3 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 18 Sep 2024 10:46:02 +0000 Subject: [PATCH 3/5] chore: adding changelog file 3177.dependencies.md --- doc/changelog.d/{3177.miscellaneous.md => 3177.dependencies.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename doc/changelog.d/{3177.miscellaneous.md => 3177.dependencies.md} (100%) diff --git a/doc/changelog.d/3177.miscellaneous.md b/doc/changelog.d/3177.dependencies.md similarity index 100% rename from doc/changelog.d/3177.miscellaneous.md rename to doc/changelog.d/3177.dependencies.md From 07fecc8787c0fe1faae5cfc70468358187468ee3 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Wed, 18 Sep 2024 11:17:21 +0000 Subject: [PATCH 4/5] chore: adding changelog file 3177.dependencies.md --- doc/changelog.d/3177.dependencies.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.d/3177.dependencies.md b/doc/changelog.d/3177.dependencies.md index fe62702d8c..a98e42acf4 100644 --- a/doc/changelog.d/3177.dependencies.md +++ b/doc/changelog.d/3177.dependencies.md @@ -1 +1 @@ -build: bump numpy from 1.26.4 to 2.0.0 in the minimal group \ No newline at end of file +build: bump numpy from 1.26.4 to 2.0.0 \ No newline at end of file From 7272b8f079235a88e35b78b3d8497a87b625973b Mon Sep 17 00:00:00 2001 From: German <28149841+germa89@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:39:27 +0200 Subject: [PATCH 5/5] fix: numpy 2.0.0 raising issue. --- src/ansys/mapdl/core/mesh/mesh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansys/mapdl/core/mesh/mesh.py b/src/ansys/mapdl/core/mesh/mesh.py index 10099b0f03..6df042cd05 100644 --- a/src/ansys/mapdl/core/mesh/mesh.py +++ b/src/ansys/mapdl/core/mesh/mesh.py @@ -240,7 +240,7 @@ def fix_missing_midside(cells, nodes, celltypes, offset, angles, nnum): unique_nodes, idx_a, idx_b = unique_rows(temp_nodes[nnodes:]) # rewrite node numbers - cells[mask] = idx_b + nnodes + cells[mask] = (idx_b + nnodes).ravel() nextra = idx_a.shape[0] # extra unique nodes nodes_new = nodes_new[: nnodes + nextra] nodes_new[nnodes:] = unique_nodes