mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 03:20:08 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user