[iput][BOM] instead of [BOM]

parent 3fb9039f
...@@ -16,7 +16,7 @@ class MergeSteps(plugin.InputPreparationPlugin): ...@@ -16,7 +16,7 @@ class MergeSteps(plugin.InputPreparationPlugin):
def preprocess(self, data): def preprocess(self, data):
""" merge the steps that constitute one single technology step """ merge the steps that constitute one single technology step
""" """
orders = data["BOM"]['orders'] orders = data["input"]["BOM"]['orders']
for order in orders: for order in orders:
orderComponents = order.get("componentsList", []) orderComponents = order.get("componentsList", [])
......
...@@ -58,10 +58,8 @@ class SplitRoute(plugin.InputPreparationPlugin): ...@@ -58,10 +58,8 @@ class SplitRoute(plugin.InputPreparationPlugin):
""" 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["BOM"]["orders"] orders = self.data["input"]["BOM"]["orders"]
stations = self.data["BOM"]["stations"] stations = self.data["input"]["BOM"]["stations"]
graph_data = self.data["graph"]
nodes = graph_data["node"]
for order in orders: for order in orders:
......
...@@ -16,8 +16,8 @@ class UpdateStationList(plugin.InputPreparationPlugin): ...@@ -16,8 +16,8 @@ class UpdateStationList(plugin.InputPreparationPlugin):
def preprocess(self, data): def preprocess(self, data):
""" substitutes the technology information with stationIDs lists """ substitutes the technology information with stationIDs lists
""" """
orders = data["BOM"]['orders'] orders = data["input"]["BOM"]['orders']
stations = data["BOM"]['stations'] stations = data["input"]["BOM"]['stations']
nodes = data["graph"]["node"] nodes = data["graph"]["node"]
for order in orders: for order in orders:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment