From 5d22f2101ca5d69efd8a4ad1716d6c19568df9bc Mon Sep 17 00:00:00 2001 From: Martin Pontius Date: Thu, 18 Jan 2024 17:18:06 +0100 Subject: [PATCH] Fix issue with waypoints --- WeatherRoutingTool/algorithms/isobased.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/WeatherRoutingTool/algorithms/isobased.py b/WeatherRoutingTool/algorithms/isobased.py index 7467aad..8c3fd87 100644 --- a/WeatherRoutingTool/algorithms/isobased.py +++ b/WeatherRoutingTool/algorithms/isobased.py @@ -361,6 +361,11 @@ def move_boat_direct(self, wt: WeatherCond, boat: Boat, constraint_list: Constra delta_time[i] = delta_time_last_step[i] delta_fuel[i] = delta_fuel_last_step[i] dist[i] = dist_last_step[i] + else: + delta_time = delta_time_last_step + delta_fuel = delta_fuel_last_step + dist = dist_last_step + is_constrained = self.check_constraints(move, constraint_list) self.update_position(move, is_constrained, dist)