Skip to content

Commit

Permalink
out of service bus in sc 1ph test
Browse files Browse the repository at this point in the history
  • Loading branch information
lthurner committed Apr 17, 2018
1 parent 5e8506b commit 0d5910a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandapower/test/shortcircuit/test_1ph.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@
import pytest

def check_results(net, vc, result):
res_ika = net.res_bus_sc[net.bus.zone==vc].ikss_ka.values
res_ika = net.res_bus_sc[(net.bus.zone==vc) & (net.bus.in_service)].ikss_ka.values
if not np.allclose(result, res_ika):
raise ValueError("Incorrect results for vector group %s"%vc, res_ika, result)

def add_network(net, vector_group):
b1 = pp.create_bus(net, 110, zone=vector_group, index=pp.get_free_id(net.bus))
b2 = pp.create_bus(net, 20, zone=vector_group)
pp.create_bus(net, 20, in_service=False)
b3 = pp.create_bus(net, 20, zone=vector_group)
b4 = pp.create_bus(net, 20, zone=vector_group)

Expand Down

0 comments on commit 0d5910a

Please sign in to comment.