Skip to content

Only sanitize locations when there are buses with a location#971

Merged
fneum merged 1 commit intoPyPSA:masterfrom
koen-vg:fix-sanitize-locations
Mar 19, 2024
Merged

Only sanitize locations when there are buses with a location#971
fneum merged 1 commit intoPyPSA:masterfrom
koen-vg:fix-sanitize-locations

Conversation

@koen-vg
Copy link
Copy Markdown
Contributor

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

Fixes an edge case when no buses with a location are added in add_extra_components; a rather trivial little fix.

Changes proposed in this Pull Request

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.

Fixes an edge case when no buses with a location are added in add_extra_components.
@FabianHofmann FabianHofmann enabled auto-merge March 18, 2024 16:50
@fneum fneum disabled auto-merge March 19, 2024 07:26
@fneum fneum merged commit db4219f into PyPSA:master Mar 19, 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