Skip to content

Commit

Permalink
Merge branch 'main' into ssp-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey authored Dec 16, 2024
2 parents 973deee + d55fbf9 commit def28b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 1 addition & 0 deletions doc/whatsnew.rst
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ Investment and fixed costs
- Add `cooling` technology variant/module (:pull:`222`).
- Add functionality to specify cost reduction values and cost reduction scenarios in a module (:issue:`251`, :pull:`255`).
- Fix technology mapping of ammonia CCS technologies in materials module (:pull:`258`).
- Remove unused `technology_type` column from tool (:pull:`269`).

Others
------
Expand Down
15 changes: 6 additions & 9 deletions message_ix_models/tools/costs/decay.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ def _get_module_scenarios_reduction(
)
]

# append scen_red_module to scen_red_energy
scenarios_joined = scenarios_energy._append(scenarios_module).reset_index(
drop=True
# concat scenarios_energy and scenarios_module
scenarios_joined = pd.concat(
[scenarios_energy, scenarios_module], ignore_index=True
)
else:
scenarios_joined = scenarios_energy.copy()
Expand Down Expand Up @@ -207,7 +207,6 @@ def _get_module_cost_reduction(
pd.concat([reduction_energy, reduction_energy_no_reduction], ignore_index=True)
.sort_values("message_technology")
.reset_index(drop=True)
.drop(columns=["technology_type"])
)

if module != "energy":
Expand All @@ -224,11 +223,9 @@ def _get_module_cost_reduction(
)
]

# append scen_red_module to scen_red_energy
reduction_joined = (
reduction_energy._append(reduction_module)
.reset_index(drop=True)
.drop(columns=["technology_type"])
# concat reduction_energy and reduction_module
reduction_joined = pd.concat(
[reduction_energy, reduction_module], ignore_index=True
)
else:
reduction_joined = reduction_energy.copy()
Expand Down

0 comments on commit def28b4

Please sign in to comment.