From 941df66bbe4e22f13196862d8c04217c30a07539 Mon Sep 17 00:00:00 2001 From: Vaibhav Surolia Date: Tue, 20 Jan 2026 12:30:11 +0530 Subject: [PATCH] Fix have_negative() using correct constraint attributes Resolved AttributeError caused by invalid neg_size reference. --- WeatherRoutingTool/constraints/constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/WeatherRoutingTool/constraints/constraints.py b/WeatherRoutingTool/constraints/constraints.py index 8e3d3d0b..c63504cc 100644 --- a/WeatherRoutingTool/constraints/constraints.py +++ b/WeatherRoutingTool/constraints/constraints.py @@ -271,7 +271,7 @@ def have_positive(self): return False def have_negative(self): - if self.neg_size > 0: + if self.neg_dis_size > 0 or self.neg_cont_size > 0: return True else: return False