From 87564c144c8efffd61f9450c98fc5a3a4fb6562d Mon Sep 17 00:00:00 2001 From: Martin Skorupski Date: Tue, 8 Oct 2024 18:50:04 +0200 Subject: [PATCH] All links to kml - use generic method 'toKml' for folder, placemark, point, and line representation - fix GeoLocation type issue Issue-ID: OAM-395 Change-Id: I8464d2da2f11323a8650d1f70651d0f1b3b66911 Signed-off-by: Martin Skorupski --- .../network_generation/model/python/o_ran_ru.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/code/network-generator/network_generation/model/python/o_ran_ru.py b/code/network-generator/network_generation/model/python/o_ran_ru.py index 5d88401..71b0b3c 100644 --- a/code/network-generator/network_generation/model/python/o_ran_ru.py +++ b/code/network-generator/network_generation/model/python/o_ran_ru.py @@ -161,14 +161,14 @@ class ORanRu(ORanNode): return result def toKml(self) -> ET.Element: - o_ran_ru: ET.Element = ET.Element("Folder") - open: ET.Element = ET.SubElement(o_ran_ru, "open") - open.text = "1" - name: ET.Element = ET.SubElement(o_ran_ru, "name") - name.text = self.name + # The O-RU 'creates' the O-DUs + # therefore the O-RU returns is "wrapper" too + o_ran_du = self.oRanDu.toKml() + o_ran_ru = super().toKml() for cell in self.cells: o_ran_ru.append(cell.toKml()) - return o_ran_ru + o_ran_du.append(o_ran_ru) + return o_ran_du def toSvg(self) -> ET.Element: return ET.Element("to-be-implemented") -- 2.16.6