pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
225 stars 177 forks source link

feat: remove "scripts." in snakefile #926

Closed doneachh closed 10 months ago

doneachh commented 10 months ago

Closes # (if applicable).

Changes proposed in this Pull Request

Checklist

doneachh commented 10 months ago

Hi @davide-f , I adjusted the snakefile in pypsa-earth as you told me in the PR of pypsa-earth sec: https://github.com/pypsa-meets-earth/pypsa-earth-sec/pull/237 As we do not work with paths in the get_commit function of pypsa-earth, i didn't adjust that here or do you think it's necessary? :)

PS: Do you know, why the pipeline doesnt work? Is it still because of the zenodo issue or is it because of my adjustments?

davide-f commented 10 months ago

Hi @davide-f , I adjusted the snakefile in pypsa-earth as you told me in the PR of pypsa-earth sec: pypsa-meets-earth/pypsa-earth-sec#237 As we do not work with paths in the get_commit function of pypsa-earth, i didn't adjust that here or do you think it's necessary? :)

PS: Do you know, why the pipeline doesnt work? Is it still because of the zenodo issue or is it because of my adjustments?

Great @doneachh :D So, I'd parse here the changes on the function you implemented in the -sec version. In the future, we may use just this function also in the -sec version.

Could you parse the changes here?

I'd like a CI to work to merge this PR, we can launch a CI early tomorrow, or if you commit early tomorrow, that should do the trick in the meantime...

doneachh commented 10 months ago

Hi @davide-f :D I adjusted the code as described :)

davide-f commented 10 months ago

CI passing, merging :) @doneachh, after merging in the -sec version, please update the git submodule using git submodule update --remote --merge

you may investigate if we can use the get_commit function from the pypsa-earth submodule instead of copying it into the -sec version, but that's not necessary

Great :D