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

Include scenario management #356

Merged
merged 11 commits into from
Jul 18, 2024
Merged

Include scenario management #356

merged 11 commits into from
Jul 18, 2024

Conversation

davide-f
Copy link
Member

@davide-f davide-f commented Jul 3, 2024

Closes # (if applicable).

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.
  • Newly introduced dependencies are added to envs/environment.yaml and envs/environment.docs.yaml.
  • Changes in configuration options are added in all of config.default.yaml, config.tutorial.yaml, and test/config.test1.yaml.
  • Changes in configuration options are also documented in doc/configtables/*.csv and line references are adjusted in doc/configuration.rst and doc/tutorial.rst.
  • A note for the release notes doc/release_notes.rst is amended in the format of previous release notes, including reference to the requested PR.

@davide-f davide-f marked this pull request as draft July 3, 2024 23:02
@davide-f davide-f marked this pull request as ready for review July 11, 2024 08:29
@energyLS
Copy link
Collaborator

@davide-f do you want me to review?

@davide-f
Copy link
Member Author

@davide-f do you want me to review?

That would be great!

@energyLS
Copy link
Collaborator

Copy link
Collaborator

@energyLS energyLS left a comment

Choose a reason for hiding this comment

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

Do the run names of PyPSA-Earth and Earth-Sec have to be aligned? Or is just the PyPSA-Earth-Sec run name relevant at all? It would be great if you could elaborate a bit on that relation. Otherwise, great PR and looks all good to me! Have you tried running locally?

Snakefile Outdated
CDIR = config["costs_dir"]

config.update({"git_commit": get_last_commit_message(".")})
config.update({"submodule_commit": get_last_commit_message(PYPSAEARTH_FOLDER)})

RDIR_PE = run["name"] + "/" if run.get("name") else ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Just for understanding: "PE" stands for PyPSA-Earth?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. This implementation relies on defining the whole scenario name of pypsa-earth as the one of the -sec model.
Potentially, we could have a different option for that to avoid re-executing the power model for different scenarios of the same power model.
Not sure what is your feeling here

Copy link
Collaborator

Choose a reason for hiding this comment

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

Well yes it would be nice to have the option to not rerunning pypsa-earth for every new pypsa-earth-sec scenario indeed. Do you think it is much effort to consider it in this PR? It it is and it would delay the Merge, then we postpone the option to not run pypsa-earth for every new scenario. By the way, isn't there an option called "disable_subworkflow" which disables pypsa-earth? I assume this option would not work anymore in this PR?

Snakefile Show resolved Hide resolved
@davide-f
Copy link
Member Author

@energyLS @hazemakhalek
linux CI is working, I believe this can be merged.
Let me know your thoughs and we can merge it :)

@davide-f davide-f merged commit 7f88c62 into main Jul 18, 2024
3 of 4 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.

2 participants