OSeMOSYS / osemosys_global

A global power system model generator for OSeMOSYS
https://osemosys-global.readthedocs.io/
GNU Affero General Public License v3.0
26 stars 15 forks source link

[FEATURE]: Manage file handeling through Snakemake #165

Open trevorb1 opened 5 months ago

trevorb1 commented 5 months ago

Idea

I made the ConfigPath class a long time ago to help manage file paths. Honestly, it kinda sucks; its a hassle to structure the modules correctly and couples the file paths to read/write data to the logic processing functions. I think we should axe the ConfigPath and ConfigFile configuration classes.

Is your feature related to a bug?

No response

Suggested Soltuion

We can do all file and parameter management through Snakemake. For examples, PyPSA Europe has done this quite nicely. Moreover, their utility function to debug these files is quite helpful.

https://github.com/PyPSA/pypsa-eur/blob/a9ac68b50e837a0365e6eb3e66d57f433dfb6804/scripts/_helpers.py#L235-L339

Additional Info

No response