-
Notifications
You must be signed in to change notification settings - Fork 184
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 statistics #579
Create statistics #579
Conversation
…-earth into create_statistics
ecb6d7d
to
edb7bf7
Compare
@pz-max I think this PR is ready for review. |
394f503
to
114a181
Compare
@davide-f happy to do that. I see several good improvements and great code (as always) I am thinking about a super small notebook:
This would also help review a lot |
I'd leave that for a subsequent PR maybe later on when this scenario generation and statistics is fully stable and validated with the paper. |
We agreed:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Main comments:
- check if new created _mock_snakemake function can be avoided by passing snakemake objects over the function
- PEP 257
- Optional, little os to Pathlib switch at some locations
@pz-max if you like to test the complete run_all_scenarios. Be aware that this will run the default configuration though |
Ready to merge if all tests are passing |
You may try locally to run it with the tutorial. I never tested it but it may work.
the default configuration file that is used as a base case for the run_scenarios is automatically chosen using the tutorial flag. Currently, I have the folder filled with world data in default configuration, I cannot mess it up... |
The CI works and there the run_scenario is already implemented |
Closes # (if applicable).
Changes proposed in this Pull Request
This PR aims at creating a new rule (make_statistics) that create statistics on the overall workflow.
This PR requires changes from #543 so first the #543 must be reviewed and merged and then this one can follow.
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
andconfig.tutorial.yaml
.test/
(note tests are changing the config.tutorial.yaml)doc/configtables/*.csv
and line references are adjusted indoc/configuration.rst
anddoc/tutorial.rst
.doc/release_notes.rst
is amended in the format of previous release notes, including reference to the requested PR.