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

PCA plotting is broken w/ numpy > 2.0 #578

Open
isaacovercast opened this issue Sep 21, 2024 · 2 comments
Open

PCA plotting is broken w/ numpy > 2.0 #578

isaacovercast opened this issue Sep 21, 2024 · 2 comments

Comments

@isaacovercast
Copy link
Collaborator

In a new clean install if you force numpy=1.26.4 (last v1.x version) the pca.draw() works fine:

image

If you don't constrain the numpy version and you get >=2.0 then the pca.draw() fails:

image

Not sure why yet

@isaacovercast
Copy link
Collaborator Author

isaacovercast commented Sep 21, 2024

Ok, it's actually coming from toyplot (#213). The PR has more info. It looks like toyplot updated the major version to 2.0 (from 1.0.4) a couple months ago, during a bunch of work on the numpy 2.0 support, but the conda package is still at 1.0.3

Started a discussion on their forum.

@isaacovercast
Copy link
Collaborator Author

A workaround is to install numpy 1.26.4:

conda install -c conda-forge numpy=1.26.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant