Skip to content

Commit

Permalink
Geospatial excess budget fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nickidge committed Oct 8, 2024
1 parent 5003bce commit 7d985ab
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions nutrition/geospatial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7d985ab

Please sign in to comment.