Skip to content

Avoid deprecation warning with Numpy 2.5#1067

Open
dopplershift wants to merge 1 commit into
Unidata:mainfrom
dopplershift:numpy-warning
Open

Avoid deprecation warning with Numpy 2.5#1067
dopplershift wants to merge 1 commit into
Unidata:mainfrom
dopplershift:numpy-warning

Conversation

@dopplershift

Copy link
Copy Markdown
Member

Description Of Changes

Numpy 2.5 has deprecated setting the dtype attribute of an array. view() is cheap anyways, since it creates a new array object without copying the underlying data.

We don't yet move to Numpy 2.5 for CI since it needs Python >= 3.12. We'll do that after release.

Numpy 2.5 has deprecated setting the dtype attribute of an array. view()
is cheap anyways, since it creates a new array object *without* copying
the underlying data.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant