-
Notifications
You must be signed in to change notification settings - Fork 210
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
Generalize retrieve databundle #260
Generalize retrieve databundle #260
Conversation
The pull request is already in good shape, yet, I would like to improve how it works.
Moreover, debugging is needed including the appropriate urls and we may need to re-organize the databundles for consistency. In particular:
|
I've just noted that the resource files from gegis are just the raw files; they don't have the fix for the empty countries, thus the known issue arise.
Moreover:
|
I filled the databundles the "empty" Africa countries demand data for all years [2030, 2040, 2050 and 2100] with era5 data 2013, and updated all databundles [zenodo&googledrive] accordingly. This branch may be merged as-is and it should work; anyway, we may need to use the links to the official PyPSA-Earth zenodo. |
Tests performed:
Once both tests are complete (expected soon), I think this PR could be ready to merge, however, we shall update the official Zenodo; @pz-max I'm not sure if you can add permissions for pushing file to Zenodo, otherwise, you may just download and upload all zip files available (except resources_africa that is a duplication) at sandbox Zenodo. |
Awesome! Regarding Zenodo, I made a fatal error. I uploaded everything from my Github linked account. Unfortunately, I cannot give anyone edit access or something like that. Suggestion. I created now a new gmail account called pypsameetsearth@gmail.com. We register a Zenodo account over it so that everyone can upload data? Login details can be found in the trusted coordinator discord channel |
@pz-max I totally agree on creating the Zenodo account for the organization. Add some comments in discord |
@davide-f can this be merged? |
I think this PR can be merged; though there can be improvements but postponed into future PRs and commits.
|
* Draft bundle file configurations * Revision bundle config * Modify Snakemake and draft of retrieve_databundle * First implementation of flexible bundles specified by config.yaml * Update release_notes * Add bundle_config docstring and specify urls for selection of bundles * Set bundle_data countries according to world_iso * Re-enable comments in yaml format * Improve bundle selection algorithm: select bundles till matching each category * Add summary * Add debug notebook and revise downloading data_bundle * Revise data_bundle.yaml * Typo * Remove typo * Improve bundle_configs links and code; bug fixing * Fixing tutorial data google drive * Update bundle data with sandbox zenodo * Standardization bundle_config and improvement zips * Update tutorial google drive links * Add test zenodo links for all bundles to bundle_configs * Add docstring and add hot_run parameter when downloading files for test purposes * Typo zenodo link * Add and improve docstrings * Specify folder cutouts_africa * Add retrieve_bundle outputs and adapt bundles * Fix hydrobasins dependencies for general case * Use tqdm instead of progressbar for progress_retrieve * Generalize hydrobasins and minor edits * Round progress bar to the first 0.01 * Revise hydro profiles to avoid computational issues with large hydrobasins * Revise hydro calculation * Revise link common_data * Update docstring and description retrieve_databundle * Fix docstrings * Test remove version limit to ipopt * Attempt to fix CI-windows; ipopt<=3.11.1 * Update links databundles with complete data for Africa demand * Restore ipopt version * Improve Snakemake and bundle_config for world compatibility * Merge https://github.com/davide-f/pypsa-africa into generalize-retrieve_databundle * Add set_level to retrieve_databundle to enable logging info Co-authored-by: Restyled.io <commits@restyled.io>
Closes # #259
Changes proposed in this Pull Request
This pull request aims at providing a general retrieve_databundle structure that enables a flexible addition of diversified bundles for different regions.
Checklist
envs/environment.yaml
andenvs/environment.docs.yaml
.config.default.yaml
,config.tutorial.yaml
, andtest/config.test1.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.