Fix NumPy 2.0 deprecations via running ruff (#2580)

* Fix NumPy 2.0 deprecations via running `ruff check --select NPY201 --fix --exclude docs/sphinx/rest_substitutions/snippets/python/converted`

See https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-0-migration-guide

* Use `numpy.any` instead of `any` because the latter does not work for multidimensional arrays.
This commit is contained in:
Randy Döring
2024-08-22 01:53:57 +02:00
committed by GitHub
parent 3901d05d40
commit f7d1d8188c
10 changed files with 22 additions and 22 deletions

View File

@@ -212,7 +212,7 @@ class TriangleShape1(FC.Polygon, MovingObjectMixin):
Points = N.array(((0, c),
( L/2.0, -c/2.0),
(-L/2.0, -c/2.0)),
N.float_)
N.float64)
Points += XY
return Points