""" splits the routes of mould parts (design + mould)
""" splits the routes of mould parts (design + mould)
"""
"""
self.data=copy(data)
self.data=copy(data)
orders=self.data["input"]["BOM"]["orders"]
orders=self.data["input"]["BOM"]["orders"]
stations=self.data["input"]["BOM"]["stations"]
stations=self.data["input"]["BOM"]["stations"]
fororderinorders:
orderComponents=order.get("componentsList",[])
fororderinorders:
forindex,componentinenumerate(orderComponents):
orderComponents=order.get("componentsList",[])
route=component.get("route",[])
forindex,componentinenumerate(orderComponents):
design_step_list=[]
route=component.get("route",[])
# 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
design_step_list=[]
routeList=deepcopy(route)
# 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
i=0
routeList=deepcopy(route)
forstepinrouteList:
i=0
stepTechnology=step.get('technology',[])
forstepinrouteList:
assertstepTechnologyinROUTE_STEPS_SET,'the technology provided does not exist'
stepTechnology=step.get('technology',[])
ifstepTechnologyinDESIGN_ROUTE_STEPS_SET:
assertstepTechnologyinROUTE_STEPS_SET,'the technology provided does not exist'