yt-project / unyt

Handle, manipulate, and convert data with units in Python
https://unyt.readthedocs.io
BSD 3-Clause "New" or "Revised" License
358 stars 46 forks source link

TST: new failure with numpy 2.0 dev #481

Closed neutrinoceros closed 5 months ago

neutrinoceros commented 7 months ago

Description

Nightly tests started failing last night (see https://github.com/yt-project/unyt/actions/runs/7121865476) The reason appears to be that numpy.linalg.cross, which was added in https://github.com/numpy/numpy/pull/25145, isn't handled yet as an array function (NEP18). It also appears that Numpy 2.0dev0 wheels for macOS are lagging behind these days so I can't reproduce this easily on my development env yet. I'll revisit this soon.

neutrinoceros commented 6 months ago

I'm also doing the work to fix the very same problem in astropy.units https://github.com/astropy/astropy/issues/15690, but numpy dev is a fast moving target these days, so I'll come back here when I'm done with astropy.units.