Commit f976dec9 authored by Georgios Dagkakis's avatar Georgios Dagkakis

plugin to read sub-batches in decomposition

parent a97eb1df
...@@ -57,6 +57,17 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -57,6 +57,17 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
wipDict['parentBatchId']=parentBatchId wipDict['parentBatchId']=parentBatchId
wipDict['name']='Batch'+parentBatchId+'_SB'+partId+'wip' wipDict['name']='Batch'+parentBatchId+'_SB'+partId+'wip'
nodes[stationId]['wip'].append(wipDict) nodes[stationId]['wip'].append(wipDict)
# if the wip is in a decomposition
elif 'Decomposition' in stationClass:
wipDict={
"_class": _class,
"id": partId,
"name": 'Batch_'+partId+'_wip',
"numberOfUnits":numberOfUnits,
"parentBatchId":parentBatchId,
"name":'Batch'+parentBatchId+'_SB'+partId+'wip'
}
nodes[stationId]['wip'].append(wipDict)
# if the wip is in a server # if the wip is in a server
else: else:
workingBatchSize=int(nodes[stationId].get(('workingBatchSize'), standardBatchUnits)) workingBatchSize=int(nodes[stationId].get(('workingBatchSize'), standardBatchUnits))
...@@ -140,7 +151,7 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin): ...@@ -140,7 +151,7 @@ class BatchesWIPSpreadsheet(plugin.InputPreparationPlugin):
"receiver":stationId "receiver":stationId
}) })
sbId+=1 sbId+=1
# if the station is after batch decomposition and before reassembly # if the station is after batch decomposition and before routing queue
elif nodes[nextObject]['_class'].startswith('Dream.RoutingQueue')\ elif nodes[nextObject]['_class'].startswith('Dream.RoutingQueue')\
and nodes[previousObject]['_class'].startswith('Dream.BatchDecomposition'): and nodes[previousObject]['_class'].startswith('Dream.BatchDecomposition'):
sbId=0 sbId=0
......
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