Use python file name conventions 24/11924/1
authorMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sun, 15 Oct 2023 11:26:43 +0000 (13:26 +0200)
committerMartin Skorupski <martin.skorupski@highstreet-technologies.com>
Sun, 15 Oct 2023 11:26:53 +0000 (13:26 +0200)
- filenames (module names) using lowercase and underscore

Issue-ID: OAM-364
Change-Id: I8bf91b78b985853a5b567f034800962d3d20ead3
Signed-off-by: Martin Skorupski <martin.skorupski@highstreet-technologies.com>
code/network-generator/model/python/countries.py [moved from code/network-generator/model/python/Countries.py with 100% similarity]
code/network-generator/model/python/geo_location.py [moved from code/network-generator/model/python/GeoLocation.py with 100% similarity]
code/network-generator/model/python/hexagon.py [moved from code/network-generator/model/python/Hexagon.py with 100% similarity]
code/network-generator/model/python/o_ran_network.py
code/network-generator/model/python/o_ran_node.py [moved from code/network-generator/model/python/ORanNode.py with 94% similarity]
code/network-generator/model/python/o_ran_object.py [moved from code/network-generator/model/python/ORanObject.py with 94% similarity]
code/network-generator/model/python/o_ran_termination_point.py [moved from code/network-generator/model/python/ORanTerminationPoint.py with 95% similarity]
code/network-generator/model/python/top.py [moved from code/network-generator/model/python/Top.py with 97% similarity]
code/network-generator/model/python/tower.py [moved from code/network-generator/model/python/Tower.py with 90% similarity]
code/network-generator/model/python/type_definitions.py [moved from code/network-generator/model/python/TypeDefinitions.py with 97% similarity]

index 9198945..0439a67 100644 (file)
@@ -17,8 +17,8 @@
 Module for a class representing a O-RAN Network
 """
 from typing import Any, Dict, List
-from model.python.Tower import Tower
-from model.python.ORanObject import IORanObject, ORanObject
+from model.python.tower import Tower
+from model.python.o_ran_object import IORanObject, ORanObject
 import xml.etree.ElementTree as ET
 
 
@@ -19,7 +19,7 @@ An abstract Class for O-RAN Node
 """
 from abc import abstractmethod
 from typing import Any, Dict
-from model.python.ORanObject import IORanObject, ORanObject
+from model.python.o_ran_object import IORanObject, ORanObject
 
 # Define an abstract O-RAN Node class
 class ORanNode(ORanObject):
@@ -20,11 +20,11 @@ An abstract Class for O-RAN Objects
 from abc import ABC, abstractmethod
 from typing import Dict
 
-from model.python.Top import ITop, Top
-from model.python.TypeDefinitions import (
+from model.python.top import ITop, Top
+from model.python.type_definitions import (
     AddressType,
 )
-from model.python.GeoLocation import GeoLocation
+from model.python.geo_location import GeoLocation
 
 
 # Define the "IORanObject" interface
@@ -19,7 +19,7 @@ An abstract Class for O-RAN TerminationPoint
 """
 from abc import abstractmethod
 from typing import Any, Dict
-from model.python.ORanObject import ORanObject
+from model.python.o_ran_object import ORanObject
 
 # Define an abstract O-RAN Node class
 class ORanTerminationPoint(ORanObject):
similarity index 97%
rename from code/network-generator/model/python/Top.py
rename to code/network-generator/model/python/top.py
index b076a62..486b023 100644 (file)
@@ -20,7 +20,7 @@ An abstract Class for all classes
 import uuid
 from abc import ABC, abstractmethod
 from typing import Optional, Dict, Union
-from model.python.TypeDefinitions import (
+from model.python.type_definitions import (
     AddressType,
     AdministrativeState,
     OperationalState,
@@ -29,7 +29,7 @@ from model.python.TypeDefinitions import (
     LifeCycleState,
     AlarmState,
 )
-from model.python.GeoLocation import GeoLocation
+from model.python.geo_location import GeoLocation
 
 
 # Define the ITop interface
similarity index 90%
rename from code/network-generator/model/python/Tower.py
rename to code/network-generator/model/python/tower.py
index 0ef93dd..2070348 100644 (file)
@@ -19,8 +19,8 @@ A Class representing a Tower to mount O-RAN RUx
 """
 from typing import Any, Dict
 
-from model.python.ORanObject import IORanObject
-from model.python.ORanNode import ORanNode
+from model.python.o_ran_object import IORanObject
+from model.python.o_ran_node import ORanNode
 
 
 # Define an abstract O-RAN Node class
@@ -18,7 +18,7 @@
 A collection of TypeDefinitions
 """
 from enum import Enum
-from model.python.Countries import Country
+from model.python.countries import Country
 
 # Define AdministrativeState enum
 class AdministrativeState(Enum):