Skip to content
Snippets Groups Projects
Commit ac2c2d23 authored by Hock, Benedikt's avatar Hock, Benedikt
Browse files

remove component category

parent 53280622
No related branches found
No related tags found
No related merge requests found
......@@ -20,16 +20,6 @@ import copy
# - Export als GraphViz -> Nä Semeseter
class ComponentCategory(Enum):
BATTERY = auto()
MOTOR = auto()
FRAME = auto()
WHEEL = auto()
AXLE = auto()
GEAR = auto()
class AggregationLayer(Enum):
SYSTEM = auto()
ASSEMBLY = auto()
......@@ -195,10 +185,16 @@ def print_assembly_tree(root, level=0, is_last=False):
print(f"{component_padding}{item}")
def check_aggregation_hierarchy(root):
pass
class KPIEncoder(json.JSONEncoder):
def default(self, o):
if isinstance(o, uuid.UUID):
return "kpi-" + str(o)
if isinstance(o, (ComponentCategory, AggregationLayer)):
if isinstance(o, AggregationLayer):
return "kpi-" + o.name
return super().default(o)
pass
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment