From fc52d08247040db75ceaa273c850cc699dccd642 Mon Sep 17 00:00:00 2001 From: birgits Date: Wed, 21 Aug 2024 14:53:00 +0200 Subject: [PATCH] Adapt warning message --- edisgo/network/topology.py | 6 ++++-- tests/network/test_topology.py | 5 +---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/edisgo/network/topology.py b/edisgo/network/topology.py index 3569a27c..d489641b 100755 --- a/edisgo/network/topology.py +++ b/edisgo/network/topology.py @@ -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: diff --git a/tests/network/test_topology.py b/tests/network/test_topology.py index 3ef11d94..1f0c2e9a 100644 --- a/tests/network/test_topology.py +++ b/tests/network/test_topology.py @@ -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