Skip to content

Commit 546ab10

Browse files
authored
update pytree filtering to inexact array (#3143)
1 parent 2de1fb2 commit 546ab10

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/examples/example_jax_petab/ExampleJaxPEtab.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@
465465
"# initialise adam\n",
466466
"optim = adam(0.01)\n",
467467
"# eqx.partition is necessary here to only initialize the optimizer for array variables\n",
468-
"param, static = eqx.partition(jax_problem, eqx.is_array)\n",
468+
"param, static = eqx.partition(jax_problem, eqx.is_inexact_array)\n",
469469
"opt_state = optim.init(param)\n",
470470
"\n",
471471
"\n",

doc/rtd_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ setuptools>=67.7.2
99
git+https://github.com/jmuhlich/pysb@22d69a350b472f33d85ba64ffb10b190483c1c98
1010
# For forward type definition in generate_equinox
1111
matplotlib>=3.7.1
12-
optax==0.2.6
12+
optax
1313
nbsphinx
1414
nbformat
1515
myst-parser

scripts/installAmiciSource.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ python -m pip install --upgrade pip wheel
3939
python -m pip install --upgrade pip setuptools cmake_build_extension==0.6.0 numpy petab swig
4040
python -m pip install git+https://github.com/pysb/pysb@master # for SPM with compartments
4141
python -m pip install git+https://github.com/patrick-kidger/diffrax@main # for events with direction
42-
python -m pip install 'optax<0.2.7' # for jax petab notebook
42+
python -m pip install optax # for jax petab notebook
4343
AMICI_BUILD_TEMP="${AMICI_PATH}/python/sdist/build/temp" \
4444
python -m pip install --verbose -e "${AMICI_PATH}/python/sdist[petab,test,vis,jax]" --no-build-isolation
4545
deactivate

0 commit comments

Comments
 (0)