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

Create config file from default if not found #194

Merged
merged 1 commit into from
Nov 22, 2021

Conversation

koen-vg
Copy link
Contributor

@koen-vg koen-vg commented Nov 22, 2021

Similarly to pypsa-eur, if the config file is not found, we can create it as a copy of config.default.yaml.

The rationale, just as with pypsa-eur, is that makes it easier to include pypsa-eur-sec as a subworkflow in a snakemake workflow. (See PyPSA/pypsa-eur#105.) It's not strictly speaking necessary, but certainly nice to have when using pypsa-eur-sec as a subworkflow.

Similarly to pypsa-eur, the config file is not found, we create it as
a copy of `config.default.yaml`. This also makes it easier to include
pypsa-eur-sec as a subworkflow in a snakemake workflow.
Copy link
Member

@fneum fneum left a comment

Choose a reason for hiding this comment

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

Good idea!

@fneum fneum merged commit 306170f into PyPSA:master Nov 22, 2021
@koen-vg koen-vg deleted the copy-default-config branch November 22, 2021 14:58
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