Skip to content

Commit

Permalink
correct the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kdomino committed Oct 13, 2023
1 parent 5c48959 commit 593d851
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ def print_optimisation_results(prob, timetable, train_set, taus, skip_stations,
for s in train_set["Paths"][j]:
s_dict = {}
try:
dt = timedelta(minutes = int(taus["pass"][f"{j}_{s_prev}_{s}"])+int(departure_prev))
dt = timedelta(minutes = round(taus["pass"][f"{j}_{s_prev}_{s}"])+int(departure_prev))
s_dict["arrive"] = t_ref + dt
conflicted_dt = timedelta(minutes = int(taus["pass"][f"{j}_{s_prev}_{s}"])+int(departure_conflict_prev))
conflicted_dt = timedelta(minutes = round(taus["pass"][f"{j}_{s_prev}_{s}"])+int(departure_conflict_prev))
s_dict["conflicted_arrive"] = t_ref + conflicted_dt
except:
0
Expand Down

0 comments on commit 593d851

Please sign in to comment.