Skip to content

Commit

Permalink
Adapt warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
birgits committed Aug 21, 2024
1 parent bfe8d13 commit fc52d08
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
6 changes: 4 additions & 2 deletions edisgo/network/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -3183,8 +3183,10 @@ def find_meshes(edisgo_obj) -> list[list[int]] | None:
meshes = nx.cycle_basis(edisgo_obj.to_graph())
if meshes:
logger.warning(
"Grid contains mesh(es). This might cause problems in "
"the power flow or optimisation."
"Grid contains mesh(es). Be aware, that the grid expansion methodology "
"is currently not able to handle meshes. Further, the optimisation of "
"flexibility dispatch is not exact in case of meshed grids, but can "
"still be used."
)
return meshes
else:
Expand Down
5 changes: 1 addition & 4 deletions tests/network/test_topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -1930,7 +1930,4 @@ def test_find_meshes(self, caplog: pytest.LogCaptureFixture):
meshes = Topology.find_meshes(self.edisgo)
assert len(meshes) == 2
assert "Bus_BranchTee_LVGrid_2_3" in meshes[1]
assert (
"Grid contains mesh(es). This might cause problems"
" in the power flow or optimisation." in caplog.text
)
assert "Grid contains mesh(es)." in caplog.text

0 comments on commit fc52d08

Please sign in to comment.