From b5a24f1458e303342f4be2414d68d586c1bfbac0 Mon Sep 17 00:00:00 2001 From: Jens de Bruijn Date: Wed, 20 Nov 2024 16:02:57 +0100 Subject: [PATCH] fix bug with irrigation limits that were not correctly applied --- geb/agents/crop_farmers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geb/agents/crop_farmers.py b/geb/agents/crop_farmers.py index 0b888a49..6373532b 100644 --- a/geb/agents/crop_farmers.py +++ b/geb/agents/crop_farmers.py @@ -505,7 +505,7 @@ def abstract_water( if potential_irrigation_consumption_farmer_m3 > 0.0: # if irrigation limit is active, reduce the irrigation demand if not np.isnan(remaining_irrigation_limit_m3[farmer]): - adjust_irrigation_to_limit( + potential_irrigation_consumption_farmer_m3 = adjust_irrigation_to_limit( farmer=farmer, day_index=day_index, remaining_irrigation_limit_m3=remaining_irrigation_limit_m3,