Skip to content

Commit

Permalink
ensure correct order of nodes at satellite connection, concerns #40
Browse files Browse the repository at this point in the history
  • Loading branch information
nesnoj committed Jul 21, 2016
1 parent 7beff26 commit 754a1ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dingo/grid/mv_grid/mv_connect.py
Expand Up @@ -398,7 +398,7 @@ def mv_connect(graph, dingo_object, debug=False):

# check all nodes
# TODO: create generators in grid class for iterating over satellites and non-satellites
for node in graph.nodes():
for node in sorted(graph.nodes(), key=lambda x: repr(x)):
if isinstance(dingo_object, LVLoadAreaCentreDingo):

# station is LV station
Expand Down

0 comments on commit 754a1ab

Please sign in to comment.