Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scenario management #724

Closed
wants to merge 83 commits into from
Closed

Scenario management #724

wants to merge 83 commits into from

Conversation

FabianHofmann
Copy link
Contributor

@FabianHofmann FabianHofmann commented Aug 15, 2023

From release notes:

PyPSA-EUR now supports the simultaneous execution of multiple scenarios. For this purpose, a scenarios.yaml file has been introduced which contains customizable scenario names with corresponding configuration overrides. To enable it, set the run: scenarios: key to True and define the scenario names to run under run: name: in the configuration file. The latter must be a subset of toplevel keys in the scenario file.

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.

@FabianHofmann
Copy link
Contributor Author

@fneum if you want you can already have a look, I will test it further locally for my project.

rules/common.smk Outdated Show resolved Hide resolved
@FabianHofmann
Copy link
Contributor Author

Note: Sweeping across years also works with this. For example using the scenario.yaml

network2013:
  snapshots:
    start: "2013-01-01"
    end: "2014-01-01"
    inclusive: 'left'


network2019:
  snapshots:
    start: "2019-01-01"
    end: "2020-01-01"
    inclusive: 'left'

  renewable:
    onwind:
      cutout: europe-2019-era5
    offwind-ac:
      cutout: europe-2019-era5
    offwind-dc:
      cutout: europe-2019-era5
    solar:
      cutout: europe-2019-era5
    hydro:
      cutout: europe-2019-era5

will create two resource and result folders with distinct years.

@fneum
Copy link
Member

fneum commented Aug 17, 2023

Note: Sweeping across years also works with this. For example using the scenario.yaml

Oh, I am excited about this!

prepare_sector: insert set_scenario_config
fneum and others added 24 commits February 17, 2024 18:27
@fneum fneum removed their request for review February 19, 2024 14:47

# Define all possible combinations of config values.
# This must define all config values that are used in the template.
config_values = dict(config_value=["true", "false"], config_value2=[1, 2, 3, 4])
Copy link
Contributor

Choose a reason for hiding this comment

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

config_value= should probably be called config_key= in this line to avoid confusion

@fneum
Copy link
Member

fneum commented Feb 20, 2024

merged via 184f3a0

@fneum fneum closed this Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

5 participants