Skip to content

Commit

Permalink
run preequilibration once
Browse files Browse the repository at this point in the history
  • Loading branch information
FFroehlich committed Dec 5, 2024
1 parent 42d4767 commit f53d4a0
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions python/sdist/amici/jax/petab.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,11 +406,9 @@ def run_simulations(
simulation_conditions = problem.get_all_simulation_conditions()

preeqs = {
sc[1]: problem.run_preequilibration(
sc[1], solver, controller, max_steps
)
for sc in simulation_conditions
if len(sc) > 1
sc: problem.run_preequilibration(sc, solver, controller, max_steps)
# only run preequilibration once per condition
for sc in {sc[1] for sc in simulation_conditions if len(sc) > 1}
}

results = {
Expand Down

0 comments on commit f53d4a0

Please sign in to comment.