You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The xarray tests appear to be from not reinstalling pyarrow compiled against np2.0, so not too worried about those. The qt one I think is just a my machine problem that I'll need to sort out at some point.
I'm most interested in the triangulation problems, which manifest in several tests failed at assertions and two image test failures (counting test_all_algorithms as one).
The image failures are quite real, looks like two contour algorithms fail to plot at all, and the "test_smooth_gradient" results in arrows that are completely different.
A tad bit surprised that if there are problems with pybind11 we don't see them a little more widespread (path in particular), but we don't.
In any case, the solutions appear to be well on their way with little to do here directly. (Though it may put a slight pause on us releasing our rc to go with this np beta).
I will leave this open for now as those get worked through.
Those failures look consistent with what I'm observing in contourpy which is that uint32 arrays are affected but float64 and uint8 don't seem to be.
If pybind/pybind11#5050 remains as it is you will need to add extra #defines before #include <pybind11/numpy.h> and build against a pybind11 release that includes that PR.
Looks like there is at least conversation leaning towards ON by default, which would mean no change is needed, but it hasn't made it to the implementation yet from what I can tell...
FYI ContourPy 1.2.1rc1 is available on PyPI (https://pypi.org/project/contourpy/1.2.1rc1/#files), built using pybind11 2.12.0 and supporting NumPy 2. There will be a full release of ContourPy 1.2.1 after NumPy 2.0.0rc1.
Activity
ksunden commentedon Mar 12, 2024
This test was run during a particularly high churn portion of the numpy 2 release cycle, so I'm guessing most of these failures are related to that.
Numpy has released 2.0.0b1 now, and testing locally I see a couple of these, but not nearly as many as the CI job found:
Digging into what I can from here.
The xarray tests appear to be from not reinstalling
pyarrowcompiled against np2.0, so not too worried about those. The qt one I think is just a my machine problem that I'll need to sort out at some point.I'm most interested in the triangulation problems, which manifest in several tests failed at assertions and two image test failures (counting
test_all_algorithmsas one).The image failures are quite real, looks like two contour algorithms fail to plot at all, and the "test_smooth_gradient" results in arrows that are completely different.
ksunden commentedon Mar 12, 2024
Okay, I think that these are likely due to pybind/pybind11#5050 (some of which via contourpy/contourpy#369)
A tad bit surprised that if there are problems with pybind11 we don't see them a little more widespread (
pathin particular), but we don't.In any case, the solutions appear to be well on their way with little to do here directly. (Though it may put a slight pause on us releasing our rc to go with this np beta).
I will leave this open for now as those get worked through.
ianthomas23 commentedon Mar 12, 2024
Those failures look consistent with what I'm observing in contourpy which is that
uint32arrays are affected butfloat64anduint8don't seem to be.If pybind/pybind11#5050 remains as it is you will need to add extra
#defines before#include <pybind11/numpy.h>and build against a pybind11 release that includes that PR.ksunden commentedon Mar 12, 2024
Looks like there is at least conversation leaning towards
ONby default, which would mean no change is needed, but it hasn't made it to the implementation yet from what I can tell...ianthomas23 commentedon Mar 28, 2024
FYI ContourPy 1.2.1rc1 is available on PyPI (https://pypi.org/project/contourpy/1.2.1rc1/#files), built using pybind11 2.12.0 and supporting NumPy 2. There will be a full release of ContourPy 1.2.1 after NumPy 2.0.0rc1.
ianthomas23 commentedon Apr 2, 2024
Full ContourPy 1.2.1 release is now on PyPI: https://pypi.org/project/contourpy/1.2.1/#files.
ksunden commentedon May 8, 2024
Sorted out between numpy 2 support/contourpy/pybind11 updates