Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Feb 3, 2025
1 parent 31856a7 commit fadc55d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion config/scenarios.manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -900,4 +900,3 @@ KN2045_Bal_HighDemand:
2035: 0.18
2040: 0.24
2045: 0.29

8 changes: 4 additions & 4 deletions workflow/scripts/modify_existing_heating.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@

logger.info(new_values)
logger.warning(f"Total stock: {total_stock}, New stock: {new_values.sum()}")
logger.warning(f"District heating is not correctly accounted for in the new stock.")
logger.warning(
f"District heating is not correctly accounted for in the new stock."
)
new_values *= existing_factor

for tech, peak in new_values.items():
existing_heating.at["Germany", tech] = peak

logger.info(
f"Heating demand after modification: {existing_heating.loc['Germany']}"
)
logger.info(f"Heating demand after modification: {existing_heating.loc['Germany']}")

existing_heating.to_csv(snakemake.output.existing_heating)

0 comments on commit fadc55d

Please sign in to comment.