Add cell-scale-factor to jsonschema
[oam.git] / code / network-generator / network_generation / model / python / o_ran_network.py
index 3f816b3..904245d 100644 (file)
@@ -62,7 +62,18 @@ class ORanNetwork(ORanObject):
             IGeoLocation, configuration["center"]
         )
 
-        size: int = int(configuration["pattern"]["nr-cell-du"]["max-reach"])
+        size: int = int(
+            int(configuration["pattern"]["nr-cell-du"]["max-reach"])
+            / (
+                1
+                + int(
+                    configuration["pattern"]["nr-cell-du"][
+                        "cell-scale-factor-for-handover-area"
+                    ]
+                )
+                / 100
+            )
+        )
         layout = Layout(
             Hexagon.layout_flat, Point(size, size), Point(0, 0)
         )  # 1 pixel = 1 meter