def test_kb_extrem_landnetz_freileitung_trafo(): pd_net = pn.kb_extrem_landnetz_freileitung_trafo(p_load_in_kw=2., q_load_in_kvar=1.) assert abs(pd_net.line.length_km.sum() - 0.348) < 0.00000001 assert abs(pd_net.load.p_kw.sum() - 54.) < 0.00000001 assert abs(pd_net.load.q_kvar.sum() - 27.) < 0.00000001 assert len(pd_net.bus.index) == 29 assert len(pd_net.line.index) == 27 assert len(pd_net.trafo.index) == 1
def test_kb_extrem_landnetz_freileitung_trafo(): pd_net = pn.kb_extrem_landnetz_freileitung_trafo(p_load_mw=0.002, q_load_mvar=0.001) assert abs(pd_net.line.length_km.sum() - 0.348) < 0.00000001 assert abs(pd_net.load.p_mw.sum() - 0.054) < 0.00000001 assert abs(pd_net.load.q_mvar.sum() - 0.027) < 0.00000001 assert len(pd_net.bus.index) == 29 assert len(pd_net.line.index) == 27 assert len(pd_net.trafo.index) == 1 pp.runpp(pd_net) assert pd_net.converged