Skip to content

Commit

Permalink
build: bump numpy from 1.26.4 to 2.0.0 (#3177)
Browse files Browse the repository at this point in the history
* 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](numpy/numpy@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] <support@github.com>

* Adding changelog entry: 3177.miscellaneous.md

* chore: adding changelog file 3177.dependencies.md

* chore: adding changelog file 3177.dependencies.md

* fix: numpy 2.0.0 raising issue.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <pyansys.github.bot@ansys.com>
Co-authored-by: German <28149841+germa89@users.noreply.github.com>
Co-authored-by: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 18, 2024
1 parent e7a3ef6 commit 2d63da1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/3177.dependencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build: bump numpy from 1.26.4 to 2.0.0
2 changes: 1 addition & 1 deletion minimum_requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mapdl/core/mesh/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2d63da1

Please sign in to comment.