Skip to content

bugfix: add check and skip for missing carrier group in plot_balance_timeseries#1662

Merged
fneum merged 2 commits intoPyPSA:masterfrom
daniel-rdt:bugfix/energy-balance-timeseries
May 19, 2025
Merged

bugfix: add check and skip for missing carrier group in plot_balance_timeseries#1662
fneum merged 2 commits intoPyPSA:masterfrom
daniel-rdt:bugfix/energy-balance-timeseries

Conversation

@daniel-rdt
Copy link
Copy Markdown
Contributor

@daniel-rdt daniel-rdt commented Apr 30, 2025

Closes #1661.

Changes proposed in this Pull Request

When one of the carrier_groups defined for plot_balance_timeseries is not included in the model scope (e.g. heating), the workflow will break at this postprocessing step since none of the carriers defined for this group are included in the network. Described in #1661.

This PR introduces a check and skip for missing/empty carrier_groups in plot_balance_timeseries.py.

Checklist

  • I tested my contribution locally and it works as intended.
  • Code and workflow changes are sufficiently documented.
  • Changed dependencies are added to envs/environment.yaml.
  • Changes in configuration options are added in config/config.default.yaml.
  • Changes in configuration options are documented in doc/configtables/*.csv.
  • Sources of newly added data are documented in doc/data_sources.rst.
  • A release note doc/release_notes.rst is added.

…timeseries (e.g. if heat sector is deactivated)
@fneum fneum enabled auto-merge (squash) May 19, 2025 16:11
@fneum fneum merged commit a709fd7 into PyPSA:master May 19, 2025
12 checks passed
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.

Breaking postprocessing in plot_balance_timeseries if Heating sector is deactivated

2 participants