Skip to content

Commit

Permalink
Set minimum number of presimulation points to 2.
Browse files Browse the repository at this point in the history
  • Loading branch information
luciansmith committed Aug 15, 2023
1 parent 5426bc7 commit 4ff0fa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions biosimulators_tellurium/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def exec_sed_task(task, variables, preprocessed_task=None, log=None, config=None
(sim.output_end_time - sim.output_start_time) * sim.number_of_steps + 1

number_of_presim_points = round(number_of_presim_points) - sim.number_of_steps
number_of_presim_points = max(2, number_of_presim_points)
road_runner.simulate(sim.initial_time, sim.output_start_time, number_of_presim_points)

results = numpy.array(road_runner.simulate(sim.output_start_time, sim.output_end_time, sim.number_of_steps+1).tolist()).transpose()
Expand Down

0 comments on commit 4ff0fa0

Please sign in to comment.