Skip to content

Commit 5170322

Browse files
committed
fixup
1 parent e1b5bc4 commit 5170322

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

python/sdist/amici/sbml_import.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,9 @@ def _process_observables(
19901990
{
19911991
name
19921992
for sigma in sigmas.values()
1993-
for symbol in sp.sympify(sigma).free_symbols
1993+
for symbol in self._sympy_from_sbml_math(
1994+
sigma
1995+
).free_symbols
19941996
if re.match(r"noiseParameter\d+$", (name := str(symbol)))
19951997
}
19961998
)
@@ -2008,7 +2010,9 @@ def _process_observables(
20082010
{
20092011
name
20102012
for obs in observables.values()
2011-
for symbol in sp.sympify(obs["formula"]).free_symbols
2013+
for symbol in self._sympy_from_sbml_math(
2014+
obs["formula"]
2015+
).free_symbols
20122016
if re.match(
20132017
r"observableParameter\d+$", (name := str(symbol))
20142018
)

python/tests/test_jax.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,8 @@ def check_fields_jax(
194194
"ts_posteq": jnp.array(ts_posteq),
195195
"my": jnp.array(my),
196196
"iys": jnp.array(iys),
197+
"ops": jnp.zeros((*my.shape[:2], 0)),
198+
"nps": jnp.zeros((*my.shape[:2], 0)),
197199
"iy_trafos": jnp.array(iy_trafos),
198200
"x_preeq": jnp.array([]),
199201
"solver": diffrax.Kvaerno5(),

0 commit comments

Comments
 (0)