Skip to content

Commit

Permalink
Update src/caf/distribute/gravity_model/multi_area.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ben <[email protected]>
  • Loading branch information
isaac-tfn and BenTaylor-TfN authored Jan 4, 2024
1 parent 774fa27 commit 8e62eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caf/distribute/gravity_model/multi_area.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def _calibrate(
assert self.achieved_cost_dist is not None
results = {}
for i, dist in enumerate(self.dists):
gresult = GravityModelCalibrateResults(
result_i = GravityModelCalibrateResults(
cost_distribution=self.achieved_cost_dist[i],
cost_convergence=self.achieved_convergence[dist.name],
value_distribution=self.achieved_distribution[dist.zones],
Expand All @@ -336,7 +336,7 @@ def _calibrate(
),
)

results[dist.name] = gresult
results[dist.name] = result_i
return results

def calibrate(
Expand Down

0 comments on commit 8e62eea

Please sign in to comment.