openego / powerd-data

GNU Affero General Public License v3.0
1 stars 0 forks source link

Adapt finding bus_id with geometry #78

Closed ClaraBuettner closed 1 year ago

ClaraBuettner commented 1 year ago

When lines or other components are added to a bus manually, that is done by the geometry. But that can vary a bit when different osm datasets are used. So it would be better to use the closest bus with a specific voltage level than hard-coding the exact geometries.

That needs to be adjusted in electrical_neighbours and fix_ehv_subnetwork

ClaraBuettner commented 1 year ago

This happens e.g. here:

https://github.com/openego/powerd-data/blob/dafa923ac5715378203e3dabb01882bf52ac4c24/src/egon/data/datasets/electrical_neighbours.py#L570-L582

https://github.com/openego/powerd-data/blob/dafa923ac5715378203e3dabb01882bf52ac4c24/src/egon/data/datasets/electrical_neighbours.py#L601-L612

https://github.com/openego/powerd-data/blob/dafa923ac5715378203e3dabb01882bf52ac4c24/src/egon/data/datasets/fix_ehv_subnetworks.py#L23-L34