minor corrections on operators name and IDs

parent 49021b5a
...@@ -61,7 +61,7 @@ class ReadJSSkills(plugin.InputPreparationPlugin): ...@@ -61,7 +61,7 @@ class ReadJSSkills(plugin.InputPreparationPlugin):
node[PBId]={ node[PBId]={
"_class": "Dream.Operator", "_class": "Dream.Operator",
"capacity": 1, "capacity": 1,
"name":PBId, "name":PBitem[0],
"skillDict":skillDict, "skillDict":skillDict,
"ouputSchedule" : 1 "ouputSchedule" : 1
} }
......
...@@ -58,7 +58,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin): ...@@ -58,7 +58,7 @@ class ReadJSWorkPlan(plugin.InputPreparationPlugin):
task_id = line[-2] task_id = line[-2]
sequence = line[4] sequence = line[4]
processingTime = float(line[-5]) processingTime = float(line[-5])
operator = line[5] operator = line[5].replace(" ","").split("-")[0]
partsneeded = line[-4] partsneeded = line[-4]
# if there are requested parts then split them # if there are requested parts then split them
if partsneeded: if partsneeded:
......
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