Skip to content

Fix NumPy 2.5 warnings - #56

Merged
twmacro merged 2 commits into
twmacro:masterfrom
joshayers:fix_numpy25_warnings
Sep 4, 2026
Merged

twmacro merged 2 commits into
twmacro:masterfrom
joshayers:fix_numpy25_warnings

Conversation

@joshayers

Copy link
Copy Markdown
Contributor

Starting with NumPy 2.5, setting the shape and dtype properties on an ndarray is deprecated.

Replaced arr.shape = shape with arr = arr.reshape(shape, copy=False).
Replaced arr.dtype = dtype with arr = arr.view(dtype).

@twmacro
twmacro merged commit 6fdeeca into twmacro:master Sep 4, 2026
4 of 13 checks passed
@joshayers

Copy link
Copy Markdown
Contributor Author

Thanks Tim!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants