def test_GBnetwork(): net = pn.GBnetwork() pp.runpp(net) assert len(net.bus) == 2224 assert len(net.line) + len(net.trafo) == 3207 assert len(net.ext_grid) + len(net.gen) + len(net.sgen) == 431 assert net.converged
def test_GBnetwork(): net = pn.GBnetwork() assert net.converged pp.runpp(net, trafo_model='pi') assert len(net.bus) == 2224 assert len(net.line) + len(net.trafo) == 3207 n_gen = 394 assert len(net.ext_grid) + len(net.gen) == n_gen assert len(net.polynomial_cost) == n_gen assert net.converged
def test_GBnetwork(): net = pn.GBnetwork() assert net.converged _ppc_element_test(net, 2224, 3207, 394 + 37, 394)