Code Review
/
oam.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add cell-scale-factor to jsonschema
[oam.git]
/
code
/
network-generator
/
network_generation
/
model
/
python
/
o_ran_network.py
diff --git
a/code/network-generator/network_generation/model/python/o_ran_network.py
b/code/network-generator/network_generation/model/python/o_ran_network.py
index
3f816b3
..
904245d
100644
(file)
--- a/
code/network-generator/network_generation/model/python/o_ran_network.py
+++ b/
code/network-generator/network_generation/model/python/o_ran_network.py
@@
-62,7
+62,18
@@
class ORanNetwork(ORanObject):
IGeoLocation, configuration["center"]
)
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
layout = Layout(
Hexagon.layout_flat, Point(size, size), Point(0, 0)
) # 1 pixel = 1 meter