partsNeeded attribute of the route steps, changed to requiredParts

parent 041fcfa9
...@@ -59,12 +59,12 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin): ...@@ -59,12 +59,12 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin):
sequence = line[4] sequence = line[4]
processingTime = float(line[-5]) processingTime = float(line[-5])
operator = line[5].replace(" ","").split("-")[0] operator = line[5].replace(" ","").split("-")[0]
partsneeded = line[-4] requiredParts = line[-4]
# if there are requested parts then split them # if there are requested parts then split them
if partsneeded: if requiredParts:
partsneeded = partsneeded.replace(" ","").split(';') requiredParts = requiredParts.replace(" ","").split(';')
else: else:
partsneeded = [""] requiredParts = []
technology = line[3] technology = line[3]
quantity = int(line[6]) quantity = int(line[6])
completed = line[-1] completed = line[-1]
...@@ -74,7 +74,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin): ...@@ -74,7 +74,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin):
"sequence": sequence, "sequence": sequence,
"processingTime": {"Fixed":{"mean":processingTime*quantity}}, "processingTime": {"Fixed":{"mean":processingTime*quantity}},
"operator": operator, "operator": operator,
"partsneeded": partsneeded, "requiredParts": requiredParts,
"technology": technology, "technology": technology,
"quantity": quantity, "quantity": quantity,
"completed": completed "completed": completed
......
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