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

Make copying default config file compatible with snakemake module #894

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

koen-vg
Copy link
Contributor

@koen-vg koen-vg commented Jan 24, 2024

It appears that the code for copying the default config to config.yaml wasn't compatible with using pypsa-eur as a snakemake module. When that is the case, it's important to use paths relative to workflow.current_basedir throughout (though confusingly current_basedir is not available in included snakefiles, where the next best thing is workflow.snakefile).

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.

@fneum fneum merged commit a536762 into PyPSA:master Jan 24, 2024
5 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