Skip to content

Commit

Permalink
Fixed initial time bug
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeByDrescher committed Nov 15, 2024
1 parent 61a3fc9 commit 9de6f9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions biosimulators_copasi/data_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1303,8 +1303,8 @@ def configure_simulation_settings(self, sim: Union[UniformTimeCourseSimulation,
if int(sim.number_of_steps) != sim.number_of_steps:
raise NotImplementedError("Number of steps must be an integer number of time points, "
f"not '{sim.number_of_steps}'")
self._values = ([((i * time_diff) / sim.number_of_steps) + self.sim.output_start_time
for i in range(sim.number_of_steps)] + [self.sim.output_end_time])
self._values = ([((i * time_diff) / sim.number_of_steps) + self._output_start_time
for i in range(sim.number_of_steps)] + [self._duration_arg])
self._length_of_output: int = len(self._values)
elif isinstance(sim, SteadyStateSimulation):
self.task_type = basico.T.STEADY_STATE
Expand Down

0 comments on commit 9de6f9a

Please sign in to comment.