Commit f9c0a6ce authored by Georgios Dagkakis's avatar Georgios Dagkakis

plugin updated so that the name of a batchScrapMachine will be the id by default

parent a3541d8d
...@@ -22,6 +22,11 @@ class AddBatchStations(plugin.InputPreparationPlugin): ...@@ -22,6 +22,11 @@ class AddBatchStations(plugin.InputPreparationPlugin):
for node_id, node in nodes.iteritems(): for node_id, node in nodes.iteritems():
if node['_class']=='Dream.BatchSource': if node['_class']=='Dream.BatchSource':
standardBatchUnits=int(node['batchNumberOfUnits']) standardBatchUnits=int(node['batchNumberOfUnits'])
# loop through all the machines and set that the name will be equal to the id
for node_id, node in nodes.iteritems():
if node['_class']=='Dream.BatchScrapMachine':
node['name']=node_id
# loop in BatchScrapMachines to change the classes if need be # loop in BatchScrapMachines to change the classes if need be
for node_id, node in nodes.iteritems(): for node_id, node in nodes.iteritems():
......
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