PyPSA / pypsa-eur

PyPSA-Eur: A Sector-Coupled Open Optimisation Model of the European Energy System
https://pypsa-eur.readthedocs.io/
342 stars 242 forks source link

Feature request: Multiple custom busmaps compatible with scenario manager #1166

Closed bobbyxng closed 1 month ago

bobbyxng commented 3 months ago

Describe the feature you'd like to see

Currently, the cluster_network.py script takes custom busmaps as an option (https://pypsa-eur.readthedocs.io/en/latest/configuration.html):

Switch to enable the use of custom busmaps in rule cluster_network. If activated the rule looks for provided busmaps at data/custom_busmap_elecs{simpl}{clusters}.csv which should have the same format as resources/busmap_elecs{simpl}{clusters}.csv, i.e. the index should contain the buses of networks/elec_s{simpl}.nc.

While this may work for the same network in different custom busmap configurations, it is not scalable to running different networks (e.g. when bus ids change across runs). --> Proposal to allow for scenario-specific wildcards. E.g. Bus maps could be saved in data/custom_busmaps/{prefix}/{name}/busmap_elec_s{simpl}

fneum commented 1 month ago

I think this is closed. If not, reopen.