Skip to content

Commit

Permalink
Filter to only keep cooling technologies in inv_cost
Browse files Browse the repository at this point in the history
  • Loading branch information
measrainsey authored and adrivinca committed Nov 4, 2024
1 parent 32a1c90 commit 13a7aca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions message_ix_models/model/water/data/water_for_ppl.py
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,9 @@ def cool_tech(context: "Context") -> dict[str, pd.DataFrame]:
# Remove technologies that are not required
inv_cost = inv_cost[~inv_cost["technology"].isin(techs_to_remove)]

Check warning on line 757 in message_ix_models/model/water/data/water_for_ppl.py

View check run for this annotation

Codecov / codecov/patch

message_ix_models/model/water/data/water_for_ppl.py#L757

Added line #L757 was not covered by tests

# Only keep cooling module technologies by filtering for technologies with "__"
inv_cost = inv_cost[inv_cost["technology"].str.contains("__")]

Check warning on line 760 in message_ix_models/model/water/data/water_for_ppl.py

View check run for this annotation

Codecov / codecov/patch

message_ix_models/model/water/data/water_for_ppl.py#L760

Added line #L760 was not covered by tests

# Add the investment costs to the results
results["inv_cost"] = inv_cost

Expand Down

0 comments on commit 13a7aca

Please sign in to comment.