diff --git a/doc/changelog.d/3177.dependencies.md b/doc/changelog.d/3177.dependencies.md new file mode 100644 index 0000000000..a98e42acf4 --- /dev/null +++ b/doc/changelog.d/3177.dependencies.md @@ -0,0 +1 @@ +build: bump numpy from 1.26.4 to 2.0.0 \ No newline at end of file diff --git a/minimum_requirements.txt b/minimum_requirements.txt index dcd925a380..866c4e8c4f 100644 --- a/minimum_requirements.txt +++ b/minimum_requirements.txt @@ -1,6 +1,6 @@ ansys-api-mapdl==0.5.2 importlib-metadata==8.5.0 -numpy==1.26.4 +numpy==2.0.0 platformdirs==4.3.2 psutil==6.0.0 pyansys-tools-versioning==0.6.0 diff --git a/pyproject.toml b/pyproject.toml index 34c5ac0cca..fffa8a3e26 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'", "platformdirs>=3.6.0", "protobuf>=3.12.2", # minimum required based on latest ansys-grpc-mapdl 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