From b8843ab3ccab4573132fe8db8461ea1e7daced2e Mon Sep 17 00:00:00 2001 From: Roman Bolgaryn Date: Tue, 6 Jun 2023 13:54:57 +0200 Subject: [PATCH] gen bug --- pandapower/test/loadflow/test_runpp.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pandapower/test/loadflow/test_runpp.py b/pandapower/test/loadflow/test_runpp.py index 8a126fe3b..c5a8deb6e 100644 --- a/pandapower/test/loadflow/test_runpp.py +++ b/pandapower/test/loadflow/test_runpp.py @@ -1449,6 +1449,19 @@ def test_lightsim2grid_option(): assert net._options["lightsim2grid"] +def test_at_isolated_bus(): + net = pp.create_empty_network() + pp.create_buses(net, 4, 110) + pp.create_ext_grid(net, 0) + + pp.create_line_from_parameters(net, 0, 1, 30, 0.0487, 0.13823, 160, 0.664) + + pp.create_gen(net, 3, 0, vm_pu=0, in_service=False) + + pp.runpp(net) + assert net._options["init_vm_pu"] == 1. + + if __name__ == "__main__": pytest.main([__file__]) # test_minimal_net()