Skip to content

Avoid deprecation warning with Numpy 2.5 - #1067

Merged
dcamron merged 1 commit into
Unidata:mainfrom
dopplershift:numpy-warning
Jul 17, 2026
Merged

Avoid deprecation warning with Numpy 2.5#1067
dcamron merged 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.
@dcamron
dcamron merged commit 1c85c9d into Unidata:main Jul 17, 2026
33 checks passed
@dopplershift
dopplershift deleted the numpy-warning branch July 17, 2026 21:06
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.

2 participants