processingTime is taking quantity into account

parent 82a2a80c
...@@ -57,7 +57,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin): ...@@ -57,7 +57,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin):
route = part.get("route", []) route = part.get("route", [])
task_id = line[-2] task_id = line[-2]
sequence = line[4] sequence = line[4]
processingTime = line[-5] processingTime = float(line[-5])
operator = line[5] operator = line[5]
partsneeded = line[-4] partsneeded = line[-4]
# if there are requested parts then split them # if there are requested parts then split them
...@@ -66,13 +66,13 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin): ...@@ -66,13 +66,13 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin):
else: else:
partsneeded = [""] partsneeded = [""]
technology = line[3] technology = line[3]
quantity = line[6] quantity = int(line[6])
completed = line[-1] completed = line[-1]
# append the current step to the route of the part # append the current step to the route of the part
route.append({ route.append({
"task_id": task_id, "task_id": task_id,
"sequence": sequence, "sequence": sequence,
"processingTime": {"Fixed":{"mean":processingTime}}, "processingTime": {"Fixed":{"mean":processingTime*quantity}},
"operator": operator, "operator": operator,
"partsneeded": partsneeded, "partsneeded": partsneeded,
"technology": technology, "technology": technology,
......
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