Skip to content

Commit

Permalink
changed to tap_pos
Browse files Browse the repository at this point in the history
  • Loading branch information
stianchris authored May 9, 2019
1 parent 1f02d37 commit 6fe2c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pypsa/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,7 +982,7 @@ def import_from_pandapower_net(network, net, extra_line_data=False):
d["Transformer"] = pd.DataFrame({"type" : net.trafo.std_type.values,
"bus0" : net.bus.name.loc[net.trafo.hv_bus].values,
"bus1" : net.bus.name.loc[net.trafo.lv_bus].values,
"tap_position" : net.trafo.tp_pos.values},
"tap_position" : net.trafo.tap_pos.values},
index=net.trafo.name)
d["Transformer"] = d["Transformer"].fillna(0)

Expand All @@ -1006,7 +1006,7 @@ def import_from_pandapower_net(network, net, extra_line_data=False):
"x" : x,
"g" : g,
"b" : b,
"tap_position" : net.trafo.tp_pos.values},
"tap_position" : net.trafo.tap_pos.values},
index=net.trafo.name)
d["Transformer"] = d["Transformer"].fillna(0)

Expand Down

0 comments on commit 6fe2c90

Please sign in to comment.