Skip to content

Commit

Permalink
Merge pull request #2065 from rbolgaryn/fix/gen_at_isolated_bus
Browse files Browse the repository at this point in the history
gen bug
  • Loading branch information
vogt31337 authored Jan 3, 2025
2 parents 6a60abc + 5b06d4b commit 3938af1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pandapower/test/loadflow/test_runpp.py
Original file line number Diff line number Diff line change
Expand Up @@ -1472,5 +1472,18 @@ 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__, "-xs"])

0 comments on commit 3938af1

Please sign in to comment.