Skip to content

Commit

Permalink
Update petab.py
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Nov 16, 2024
1 parent d79cfc1 commit 94aa679
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions python/sdist/amici/jax/petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ParameterMappingForCondition,
create_parameter_mapping,
)
from amici.jax.model import JAXModel, simulate_condition
from amici.jax.model import JAXModel


def jax_unscale(

Check warning on line 29 in python/sdist/amici/jax/petab.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/jax/petab.py#L29

Added line #L29 was not covered by tests
Expand Down Expand Up @@ -239,10 +239,9 @@ def run_simulation(
if len(simulation_condition) > 1
else jnp.array([])
)
return simulate_condition(
return self.model.simulate_condition(

Check warning on line 242 in python/sdist/amici/jax/petab.py

View check run for this annotation

Codecov / codecov/patch

python/sdist/amici/jax/petab.py#L242

Added line #L242 was not covered by tests
p,
p_preeq,
self.model,
jax.lax.stop_gradient(jnp.array(ts_preeq)),
jax.lax.stop_gradient(jnp.array(ts_dyn)),
jax.lax.stop_gradient(jnp.array(ts_posteq)),
Expand Down

0 comments on commit 94aa679

Please sign in to comment.