Skip to content

Compatibility with newer JAX and numpy versions#45

Open
Jayshil wants to merge 2 commits into
bmorris3:mainfrom
Jayshil:main
Open

Compatibility with newer JAX and numpy versions#45
Jayshil wants to merge 2 commits into
bmorris3:mainfrom
Jayshil:main

Conversation

@Jayshil
Copy link
Copy Markdown

@Jayshil Jayshil commented Dec 16, 2025

Hi @bmorris3,

The current version of kelp will not work with newer JAX versions since there is a new way to enable 64-bit precision. Similarly, it will also not work with numpy 2. The main issue with numpy is that np.cast was removed in numpy 2. The error message suggests using np.asarray instead. I addressed both of these issues in this PR.

I have tried this version on my computer, and my version is working well with numpy v2.1.3 and JAX v0.8.1. Please let me know if you have any questions or comments on this.

Cheers,
Jayshil

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

Successfully merging this pull request may close these issues.

1 participant