Commit 49bc5cc6 authored by Georgios Dagkakis's avatar Georgios Dagkakis

user to define operation in skills spreadsheett

parent 6c01d6d6
......@@ -26,14 +26,20 @@ class ReadSkilledOperators(plugin.InputPreparationPlugin):
if not PBId:
continue
skills=PBitem[1].split(',')
newSkills=[]
for n_id,n in node.iteritems():
technology=n.get('technology',None)
if technology in skills and n_id not in newSkills:
newSkills.append(n_id)
node[PBId]={
"_class": "Dream.Operator",
"capacity": 1,
"name":PBId,
"skills":skills,
"skills":newSkills,
"ouputSchedule" : 1
}
operatorPresent = True
print PBId, newSkills
# if there is at least one operator
if operatorPresent:
......
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