From e938465230145b3d7f0b70e7f76fc658f3edb31f Mon Sep 17 00:00:00 2001 From: Fedor Baart Date: Thu, 29 Feb 2024 15:59:28 +0100 Subject: [PATCH] fix code issues --- opentnsim/vessel_traffic_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opentnsim/vessel_traffic_service.py b/opentnsim/vessel_traffic_service.py index b09a5bc3..70012433 100644 --- a/opentnsim/vessel_traffic_service.py +++ b/opentnsim/vessel_traffic_service.py @@ -1036,7 +1036,7 @@ def combine_tidal_windows(self, tidal_window_1, tidal_window_2): limit_1 if not math.isnan(limit_1) else limit_2 for limit_1, limit_2 in tidal_accessibility.Limit.to_numpy() ] tidal_accessibility_condition = [ - condition_1 if type(condition_1) == str else condition_2 + condition_1 if isinstance(condition_1, str) else condition_2 for condition_1, condition_2 in tidal_accessibility.Condition.to_numpy() ] tidal_accessibility_accessibility = [