Skip to content

Commit

Permalink
OPT-1029 - Move ParentCalculatorTransformer::transform to build_otm
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgarcia-iriusrisk committed Oct 24, 2023
1 parent 55fbfc2 commit 48b24b4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions slp_drawio/slp_drawio/parse/drawio_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def build_otm(self) -> OTM:
self.map_components_and_trustzones()

# TODO Implement and call Transformers here
ParentCalculatorTransformer(self.diagram).transform()

otm = self.__build_otm()

Expand All @@ -35,8 +36,6 @@ def map_components_and_trustzones(self):
def __build_otm(self):
otm = OTMBuilder(self.project_id, self.project_name, DiagramType.DRAWIO).build()

ParentCalculatorTransformer(self.diagram).transform()

otm.representations = [self.diagram.representation.otm]
otm.components = [c.otm for c in self.diagram.components]
otm.dataflows = [d.otm for d in self.diagram.dataflows]
Expand Down

0 comments on commit 48b24b4

Please sign in to comment.