From 8740261e55df088012007c00e8e57ee9f3f6ae29 Mon Sep 17 00:00:00 2001 From: Sophie Frasnedo <93923177+So-Fras@users.noreply.github.com> Date: Tue, 21 Nov 2023 16:14:49 +0100 Subject: [PATCH] Add missing dangling line visitor function (#681) Signed-off-by: Sophie Frasnedo --- .../com/powsybl/python/network/NetworkAreaDiagramUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java b/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java index 78483f4f5d..c2a786b228 100644 --- a/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java +++ b/java/src/main/java/com/powsybl/python/network/NetworkAreaDiagramUtil.java @@ -183,5 +183,11 @@ private void visitTerminal(Terminal terminal) { } } + + public void visitDanglingLine(DanglingLine danglingLine) { + if (danglingLine.isPaired()) { + danglingLine.getTieLine().ifPresent(tieline -> visitBranch(tieline, tieline.getSide(danglingLine.getTerminal()))); + } + } } }