Skip to content

Commit

Permalink
Remove rounding of reference region base year cost
Browse files Browse the repository at this point in the history
Rounding is causing issues when the base year cost is below 0.5 (such is the case for some cooling technologies). These values are rounded down to 0, which then causes NAs for cost projections.
  • Loading branch information
measrainsey committed Sep 2, 2024
1 parent 8662c7c commit 670b91e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message_ix_models/tools/costs/regional_differentiation.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def subset_module_map(raw_map):
"reg_diff_source.notnull() or base_year_reference_region_cost.notnull()"
)
.rename(columns={"base_year_reference_region_cost": "base_cost"})
.assign(base_year_reference_region_cost=lambda x: x.base_cost.round())
.assign(base_year_reference_region_cost=lambda x: x.base_cost)
.drop(columns={"base_cost"})
)

Expand Down

0 comments on commit 670b91e

Please sign in to comment.