@@ -18,16 +18,16 @@ class SplitRoute(plugin.InputPreparationPlugin):
...
@@ -18,16 +18,16 @@ class SplitRoute(plugin.InputPreparationPlugin):
defpreprocess(self,data):
defpreprocess(self,data):
""" splits the routes of mould parts (design + mould)
""" splits the routes of mould parts (design + mould)
"""
"""
self.data=copy(data)
orders=data["input"]["BOM"]["orders"]
orders=self.data["input"]["BOM"]["orders"]
stations=data["input"]["BOM"]["stations"]
stations=self.data["input"]["BOM"]["stations"]
fororderinorders:
fororderinorders:
orderComponents=order.get("componentsList",[])
orderComponents=order.get("componentsList",[])
componentsToAdd=[]
forindex,componentinenumerate(orderComponents):
forindex,componentinenumerate(orderComponents):
route=component.get("route",[])
route=component.get("route",[])
design_step_list=[]
design_step_list=[]
# for each step of the components route find out if it is of a design route (ENG - CAD) or of mould route (ASSM-INJM). If the route contains none of these technology-types steps then the component is normal
# for each step of the components route find out if it is of a design route (ENG - CAD) or of mould route (ASSM-INJM). If the route contains none of these technology-types steps then the component is normal
routeList=deepcopy(route)
routeList=copy.deepcopy(route)
i=0
i=0
forstepinrouteList:
forstepinrouteList:
stepTechnology=step.get('technology',[])
stepTechnology=step.get('technology',[])
...
@@ -38,12 +38,14 @@ class SplitRoute(plugin.InputPreparationPlugin):
...
@@ -38,12 +38,14 @@ class SplitRoute(plugin.InputPreparationPlugin):