Skip to content

Fill in missing eurostat data on domestic aviation energy demand#973

Merged
fneum merged 2 commits intoPyPSA:masterfrom
koen-vg:fill-missing-domestic-aviation
Mar 21, 2024
Merged

Fill in missing eurostat data on domestic aviation energy demand#973
fneum merged 2 commits intoPyPSA:masterfrom
koen-vg:fill-missing-domestic-aviation

Conversation

@koen-vg
Copy link
Copy Markdown
Contributor

@koen-vg koen-vg commented Mar 18, 2024

Changes proposed in this Pull Request

This fixes a nasty bug where rescale_idees_from_eurostat would result in infinite kerosene demand upon division by zero (obviously leading to infeasibility of the model, but no earlier error). I think filling in zeroes this way seems like the most reasonable way of dealing with the problem, but not 100% sure. At least it does work now.

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.

@koen-vg koen-vg force-pushed the fill-missing-domestic-aviation branch from f432fd3 to a8454fd Compare March 19, 2024 07:52
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.

Thanks! Great catch, great fix!

@fneum fneum enabled auto-merge March 21, 2024 11:16
@fneum fneum merged commit 91c9dd2 into PyPSA:master Mar 21, 2024
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.

2 participants