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/
207 stars 167 forks source link

remove_stubs can drop countries #970

Open davide-f opened 4 months ago

davide-f commented 4 months ago

Checklist

Describe the Bug

Running remove_stubs may drop entire countries if few buses of the country are identified by remove_stubs. This behavior can be solved by setting the following option to false by default. https://github.com/pypsa-meets-earth/pypsa-earth/blob/6bf4b1c31c798c866adb17555c6885642b48a03b/config.default.yaml#L65 This is not a priority task and I keep it open, it is a nice first good issue. To fix we need to just change the option to false in the config.tutorial.yaml and config.default.yaml files.