Skip to content

Avoid setting shape on numpy directly - #183

Merged
pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:fix-reshape
Sep 3, 2026
Merged

Avoid setting shape on numpy directly#183
pshriwise merged 1 commit into
openmc-dev:developfrom
paulromano:fix-reshape

Conversation

@paulromano

Copy link
Copy Markdown
Contributor

As of numpy 2.5, setting the shape attribute on an ndarray is deprecated. This PR updates one instance of this to use the reshape method instead.

@pshriwise pshriwise left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks @paulromano!

@pshriwise
pshriwise merged commit 357a5b4 into openmc-dev:develop Sep 3, 2026
1 check passed
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