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

fix: replace deprecated jax.numpy.trapz #15

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Conversation

alonfnt
Copy link
Member

@alonfnt alonfnt commented Mar 14, 2024

Apparently in the 0.4.16 JAX release, there were several deprecations following NEP52
(https://numpy.org/neps/nep-0052-python-api-cleanup.html) One of those was jax.numpy.trapz. Instead we are meant to use jax.scipy.integrate.trapozoid.

The C. Elegans code used trapz so it is not running on the current version.

alonfnt added 2 commits March 14, 2024 23:21
Apparently in the 0.4.16 JAX release, there were several deprecations
following NEP52
(https://numpy.org/neps/nep-0052-python-api-cleanup.html)
One of those was jax.numpy.trapz. Instead we are meant to use
jax.scipy.integrate.trapozoid.

The C. Elegans code used trapz so it is not running on the current
version.
Packages requiere newer Python versions than 3.8.
But some packages are old and use deprecated features (scikit-video),
so I added a quick fix. Ideally I fix it at some point.
Some versions on requirements are also more clearly specified, as there
are other deprecations.
@alonfnt alonfnt force-pushed the fix_jax_deprecation branch from 81098ac to 16a6c38 Compare March 14, 2024 23:57
@alonfnt alonfnt merged commit 484bc3b into main Jun 1, 2024
1 check passed
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