Skip to content

Fix negative district heating progress#1168

Merged
fneum merged 3 commits intomasterfrom
non-negative-district-heating-progress
Jul 19, 2024
Merged

Fix negative district heating progress#1168
fneum merged 3 commits intomasterfrom
non-negative-district-heating-progress

Conversation

@amos-schledorn
Copy link
Copy Markdown
Contributor

Currently, district heating progress, i.e. the evolution between current and future district heating market share can be negative if potential is set to a value smaller than the current district heating market share in the config.

Closes #1161 .

Changes proposed in this Pull Request

This PR fixes this behaviour by applying a minimum progress of 0 in build_district_heat_share.py:
diff = ((urban_fraction * central_fraction) - dist_fraction_node).clip(lower=0)

Checklist

  • I tested my contribution locally and it seems to work fine.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in all of config.default.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv.
  • A release note doc/release_notes.rst is added.

@amos-schledorn amos-schledorn requested a review from fneum July 19, 2024 09:58
Copy link
Copy Markdown
Member

@fneum fneum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@fneum fneum merged commit 8fe5921 into master Jul 19, 2024
@amos-schledorn amos-schledorn deleted the non-negative-district-heating-progress branch July 19, 2024 12:00
lindnemi pushed a commit that referenced this pull request Jul 22, 2024
* impose minimum district heating progress of 0

* update release_notes

* update configtables
cpschau pushed a commit that referenced this pull request Jul 26, 2024
* impose minimum district heating progress of 0

* update release_notes

* update configtables
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Avoid shrinking DH share

2 participants