Closed ekatef closed 7 months ago
The issue is caused by data workflow settings for pypsa-earth
sub-workflow. The following step allow to run the workflow.
pypsa-distribution/pypsa-earth/configs/scenarios
. Currently there is a config for Nigeria indexed by git with this commit.There are also a number of git-tracked configuration files, in particular config.distribution.yaml
and config.pypsa-earth.yaml
, as well as pypsa-earth/config.yaml
, but I reckon they are not relevant for setup a particular workflow run.
@davide-f thanks a lot for discussion and fixes.
After some additional testing, I confirm that content of pypsa-distribution/pypsa-earth/configs/scenarios
does not have any effect on this issue.
The issue with path definitions is not perfectly reproducible: it persisted when the workflow has been re-run using the previously loaded data (those placed in pypsa-distribution/pypsa-earth/data
), but has disappeared for them after these data were removed manually and loaded agaian using pypsa-earth
submodule. The issue for cutout still exists.
Change of the paths to local ones may be used as quick-and-dirty fix, while some in-depth investigation may be helpful to understand what is going on there. I suspect, an upcoming release of Snakemake may change a lot there. So, probably it's just worth to wait a bit.
As the last resort, it's possible to reset pypsa-earth
submodule using some git magic:
git submodule deinit -f --all
git submodule update --init
Closed as fixed with #36
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f pypsa-earth/envs/environment.yaml
.Describe the Bug
When changing the country (e.g. from
NG
toKZ
orCN
), an attempt to runsolve_network
rule leads toMissingRuleException
which randomly complains about missing data files or a cutout file.All the data files are placed in
"pypsa-distribution/pypsa-earth/data"
and"pypsa-distribution/pypsa-earth/cutouts"
, and are fetched if"NG"
is specified.Error Message
Depending on a run, there may be also
data/copernicus/PROBAV_LC100_global_v3.0.1_2019-nrt_Discrete-Classification-map_EPSG-4326.tif
orcutouts/africa-2013-era5-tutorial.nc
reported as a missed file.