PyPSA / pypsa-ariadne

High resolution, sector-coupled model of the German Energy System
https://ariadneprojekt.de/en/model-documentation-pypsa/
MIT License
6 stars 4 forks source link

Fix shared resources #77

Closed toniseibold closed 1 month ago

toniseibold commented 2 months ago

Adressing https://github.com/PyPSA/pypsa-ariadne/issues/67 This PR allows to specify files in config[run][exclude] that are not shared when config[run][shared_resources]=base. exclude accepts a list of strings, the string only needs to match the start of a filename since the function startswith() is used in the helpers function. E.g. "transport_data" would exclude both transport_data.csv and transport_data_{simpl}_{clusters}.csv from filesharing. Please note that a corresponding PR in the pypsa-eur/ariadne2 branch is needed in order for this PR to work. https://github.com/PyPSA/pypsa-eur/pull/1050

toniseibold commented 2 months ago

Having some trouble with the filesharing of the costs_{year}.csv. Workflow wants them to be in the individual resources/scenario/ directory but can't execute rule retrieve_cost_data.

lindnemi commented 2 months ago

rename costs from pypsa-eur to costs_raw

lindnemi commented 1 month ago

@fneum introduced some relevant changes in the updated config. I adapted the code and hoped it would run, but now i get a missing input file error for modify_cost_data. @toniseibold could you have a look?

toniseibold commented 1 month ago

As mentioned before, this PR only works with this PR https://github.com/PyPSA/pypsa-ariadne/pull/78. I merged that one into this branch. Not sure about best practice ...