Skip to content

Conversion of an array with ndim > 0 to a scalar deprecation fixed #186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 31, 2023

Conversation

fjosw
Copy link
Owner

@fjosw fjosw commented May 30, 2023

With the upcoming release of numpy 1.25 we are hitting a few deprecations. This a fix for

Only ndim-0 arrays are treated as scalars. NumPy used to treat all
arrays of size 1 (e.g., np.array([3.14])) as scalars. In the
future, this will be limited to arrays of ndim 0 (e.g.,
np.array(3.14)).

Please check that this does not break anything.

@fjosw fjosw requested a review from s-kuberski as a code owner May 30, 2023 12:04
@fjosw fjosw merged commit ca70c75 into develop May 31, 2023
@fjosw fjosw deleted the fix/np125 branch June 1, 2023 12:36
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.

1 participant