[iput][BOM] instead of [BOM]

parent 3fb9039f
......@@ -16,7 +16,7 @@ class MergeSteps(plugin.InputPreparationPlugin):
def preprocess(self, data):
""" merge the steps that constitute one single technology step
"""
orders = data["BOM"]['orders']
orders = data["input"]["BOM"]['orders']
for order in orders:
orderComponents = order.get("componentsList", [])
......
......@@ -58,10 +58,8 @@ class SplitRoute(plugin.InputPreparationPlugin):
""" splits the routes of mould parts (design + mould)
"""
self.data = copy(data)
orders = self.data["BOM"]["orders"]
stations = self.data["BOM"]["stations"]
graph_data = self.data["graph"]
nodes = graph_data["node"]
orders = self.data["input"]["BOM"]["orders"]
stations = self.data["input"]["BOM"]["stations"]
for order in orders:
......
......@@ -16,8 +16,8 @@ class UpdateStationList(plugin.InputPreparationPlugin):
def preprocess(self, data):
""" substitutes the technology information with stationIDs lists
"""
orders = data["BOM"]['orders']
stations = data["BOM"]['stations']
orders = data["input"]["BOM"]['orders']
stations = data["input"]["BOM"]['stations']
nodes = data["graph"]["node"]
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