Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/virtualship/models/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ def verify(self, expedition: Expedition, problems_dir: Path) -> None:
if problem["problem_waypoint_i"] is not None
else new_schedule.waypoints[0].time
)
current_time = problem_waypoint.time + time_elapsed
current_time = (
problem_waypoint.time + time_elapsed
if problem["problem_waypoint_i"] is not None
else self.past_schedule.waypoints[0].time + time_elapsed
)

raise CheckpointError(
f"The problem encountered in previous simulation has not been resolved in the schedule! Please adjust the schedule to account for delays caused by the problem (by using `virtualship plan` or directly editing the {EXPEDITION} file).\n\n"
Expand Down