Skip to content

Commit

Permalink
Remove unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Oct 13, 2018
1 parent 1df49fd commit 547dc73
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions edisgo/tools/pypsa_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,18 +331,12 @@ def mv_to_pypsa(network):
if l['adj_nodes'][0] in lv_stations:
line['bus0'].append(
'_'.join(['Bus', l['adj_nodes'][0].__repr__(side='mv')]))
elif l['adj_nodes'][0] is network.mv_grid.station:
line['bus0'].append(
'_'.join(['Bus', l['adj_nodes'][0].__repr__(side='lv')]))
else:
line['bus0'].append('_'.join(['Bus', repr(l['adj_nodes'][0])]))

if l['adj_nodes'][1] in lv_stations:
line['bus1'].append(
'_'.join(['Bus', l['adj_nodes'][1].__repr__(side='mv')]))
elif l['adj_nodes'][1] is network.mv_grid.station:
line['bus1'].append(
'_'.join(['Bus', l['adj_nodes'][1].__repr__(side='lv')]))
else:
line['bus1'].append('_'.join(['Bus', repr(l['adj_nodes'][1])]))

Expand Down

0 comments on commit 547dc73

Please sign in to comment.