Skip to content

Conversation

@AlessandroPampado99
Copy link

If you attempt to run PyPSA-Eur using the 2024 weather year, the electricity demand script fails because no demand data are available for that year.
A workaround is to set fixed_year: 2019 (or lower), but this still requires correcting how synthetic demand data are integrated — they should refer to the fixed year rather than to snapshots, and the resulting load must be reindexed properly.

Changes proposed in this Pull Request

  • Reindex correctly load to the snapshots to avoide Nan values
  • Refer the synthetic data to years instead of snapshots (more robust behaviour)

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.

@fneum
Copy link
Member

fneum commented Nov 4, 2025

Will be fixed in #1828.

@fneum
Copy link
Member

fneum commented Nov 5, 2025

Closing in favour of #1828

@fneum fneum closed this Nov 5, 2025
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