Skip to content

Commit

Permalink
Sort buses descending by their voltage level
Browse files Browse the repository at this point in the history
This way, extension lines are connected to the bus with the highest voltage level
at the geom.
  • Loading branch information
ClaraBuettner committed Aug 22, 2024
1 parent 8d24935 commit 426718a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/egon/data/datasets/postprocessing_lines_from_nep.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def find_bus(name, missing_substations_csv):
FROM grid.egon_etrago_bus
WHERE scn_name = 'eGon2035'
AND carrier = 'AC'
ORDER BY geom, v_nom;
ORDER BY geom, v_nom DESC;
""",
geom_col="point",
epsg=4326,
Expand Down

0 comments on commit 426718a

Please sign in to comment.