From 7d985aba6b38d013e4f2c8b69719a05ab222b5e3 Mon Sep 17 00:00:00 2001 From: Nick Scott Date: Tue, 8 Oct 2024 14:27:09 +1100 Subject: [PATCH] Geospatial excess budget fix --- nutrition/geospatial.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/nutrition/geospatial.py b/nutrition/geospatial.py index f53deda01..bf98f9002 100644 --- a/nutrition/geospatial.py +++ b/nutrition/geospatial.py @@ -131,14 +131,6 @@ def run_geo(self, proj, maxiter, swarmsize, maxtime, parallel, runbalanced=False for index in sorted(track_del_ind, reverse=True): del results[index] - if excess_budget > 0: - excess_res = sc.dcp(results[0]) - excess_res.name = _("Excess budget") - excess_prog = sc.dcp(excess_res.programs[_("Excess budget not allocated")]) - excess_prog.annual_spend[1:] += excess_budget - excess_res.prog_info.programs = {_("Excess budget not allocated"): excess_prog} - excess_res.programs = excess_res.prog_info.programs - results.append(excess_res) return results def make_regions(self, add_funds=None, rem_curr=False, mults=None, weight_ind=None):