Skip to content

Commit

Permalink
fix models without preequilibration
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Dec 5, 2024
1 parent 69f2fa4 commit ba37d0b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/sdist/amici/jax/petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,11 @@ def run_simulations(

results = {
sc[0]: problem.run_simulation(
sc, solver, controller, max_steps, preeqs.get(sc[1])[0]
sc,
solver,
controller,
max_steps,
preeqs.get(sc[1])[0] if len(sc) > 1 else jnp.array([]),
)
for sc in simulation_conditions
}
Expand Down

0 comments on commit ba37d0b

Please sign in to comment.