Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility with numpy 2.2 #514

Open
rileyjmurray opened this issue Dec 16, 2024 · 0 comments
Open

Incompatibility with numpy 2.2 #514

rileyjmurray opened this issue Dec 16, 2024 · 0 comments
Labels
bug A bug or regression

Comments

@rileyjmurray
Copy link
Contributor

rileyjmurray commented Dec 16, 2024

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):

if state_space_labels is None or state_space_labels in ((), (None,)):

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.

@rileyjmurray rileyjmurray added the bug A bug or regression label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug or regression
Projects
None yet
Development

No branches or pull requests

1 participant