[x] I am using the current main branch or the latest release. Please indicate.
[x] I am running on an up-to-date pypsa-earth environment. Update via conda env update -f envs/environment.yaml.
Describe the Bug
The function to sets_path_to_root is hardcoded in a number of places with pypsa-earth. This caused some issues because I have forked and renamed the repo therefore breaking the code. the retrieve_databundle_light rule was breaking until I changed this to my repo name.
Checklist
main
branch or the latest release. Please indicate.pypsa-earth
environment. Update viaconda env update -f envs/environment.yaml
.Describe the Bug
The function to
sets_path_to_root
is hardcoded in a number of places withpypsa-earth
. This caused some issues because I have forked and renamed the repo therefore breaking the code. theretrieve_databundle_light
rule was breaking until I changed this to my repo name.https://github.com/pypsa-meets-earth/pypsa-earth/blob/508f80c4726b8373cec0eac1f0b52d7520c99077/scripts/retrieve_databundle_light.py#L630
Above is one example of this but I found it in 10 other places in scripts.
I would suggest changing this to a variable and perhaps putting it in the snakefile or the config file? What do you think?