openego / eGon-data

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

Duplicate key values in grid.egon_pf_hv_bus #315

Closed ClaraBuettner closed 2 years ago

ClaraBuettner commented 3 years ago

The task 'osmtgmod_to_pypsa' currently fails when the task 'insert-gas-grid' run before due to duplicate key values. This happens because 'osmtgmod_to_pypsa' doesn't check if thebus_id already exist.

I remember that we wanted to keep the bus_id from the substations/osmtgmod. I see three options to solve this problem:

The first option is very easy to implement, but also leads to less parallel tasks and longer computation times.

ClaraBuettner commented 2 years ago

The first option was implemented in 079cec7a644dbe9162b1648152b65c1667c0b921