Incompatibility with numpy 2.2 #514
Labels
bug
A bug or regression
likely quick
Things we expect to not take significant investigation or changes (remove label if issue spirals)
Milestone
In numpy 2.2, a deprecation expired regarding truthiness checks of empty arrays (e.g.,
bool(np.array([]))
). Apparently this check happens often in the Labels class. For some reason pytest complains that the check happens here (even though it isn't clear why the problematic check would be happening here):pyGSTi/pygsti/baseobjs/label.py
Line 130 in f144607
I don't have specific error messages to share since I just downgraded to numpy 2.1, but you can easily see the errors if you run the unit tests with numpy 2.2 installed.
The text was updated successfully, but these errors were encountered: