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

Windows seems to run numpy on int32? #567

Open
michaeldeistler opened this issue Jan 16, 2025 · 0 comments
Open

Windows seems to run numpy on int32? #567

michaeldeistler opened this issue Jan 16, 2025 · 0 comments

Comments

@michaeldeistler
Copy link
Contributor

My student @dorimolnar runs Jaxley on Windows and is having issues because the following instantiates a np.int32 array:

import numpy as np
np.asarray(0).dtype

On linux and on Mac, this instantiates a np.int64 array. Here, we assume int64. This assumption then causes assertion errors here.

We should try to make this assert more robust to avoid issues on Windows or small laptops which might default to single precision instead of to double precision.

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