Merge "ADD N1, N2 N3 interfacing to topology generation"
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Mon, 7 Mar 2022 14:23:46 +0000 (14:23 +0000)
committerGerrit Code Review <gerrit@o-ran-sc.org>
Mon, 7 Mar 2022 14:23:46 +0000 (14:23 +0000)
code/network-topology-instance-generator/model/python/svg/node.py
code/network-topology-instance-generator/model/python/svg/o_cu_cp.py
code/network-topology-instance-generator/model/python/svg/o_cu_up.py

index 11ff3a9..3035419 100644 (file)
@@ -24,7 +24,7 @@ class Node(Svg):
     """
     Class representing an SVG Element object as Connection Node Edge Point
     """
-    
+
     def label(self) -> str:
         """
         Getter for the short label as displayed of the SVG Element
@@ -38,7 +38,7 @@ class Node(Svg):
         Getter for height of the SVG Element
         :return Height in pixel
         """
-        self.__height = 1*ConnectionEdgePoint.width(self) 
+        self.__height = 1*ConnectionEdgePoint.width(self)
         return self.__height
 
     # overwrite
index 6a5c61e..392deb2 100644 (file)
@@ -31,5 +31,5 @@ class OCuCp(Node):
         :return Width in pixel
         """
         self.__width = max(2, len(self.tapi_object().data()[
-                           'owned-node-edge-point'])+1)*ConnectionEdgePoint.width(self)
+                           'owned-node-edge-point'])+0)*ConnectionEdgePoint.width(self)
         return self.__width
index f956638..2a7b29f 100644 (file)
@@ -31,5 +31,5 @@ class OCuUp(Node):
         :return Width in pixel
         """
         self.__width = max(2, len(self.tapi_object().data()[
-                           'owned-node-edge-point'])+1)*ConnectionEdgePoint.width(self)
+                           'owned-node-edge-point'])+0)*ConnectionEdgePoint.width(self)
         return self.__width