Commit 4730e024 authored by Georgios Dagkakis's avatar Georgios Dagkakis

control so that if a full batch is set as WIP to first station it is not...

control so that if a full batch is set as WIP to first station it is not created (source will do it anyway)
parent cb32d681
...@@ -171,6 +171,7 @@ class BatchesWIPShort(plugin.InputPreparationPlugin): ...@@ -171,6 +171,7 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
def createSubBatch(self,data,stationId,parentBatchId,parentBatchName,subBatchId,numberOfUnits, def createSubBatch(self,data,stationId,parentBatchId,parentBatchName,subBatchId,numberOfUnits,
unitsToProcess=0,receiver=None): unitsToProcess=0,receiver=None):
# print 'creating sub-batch',stationId,parentBatchId,receiver # print 'creating sub-batch',stationId,parentBatchId,receiver
if stationId:
data['graph']['node'][stationId]['wip'].insert(0,{ data['graph']['node'][stationId]['wip'].insert(0,{
"_class": 'Dream.SubBatch', "_class": 'Dream.SubBatch',
"id": parentBatchId+'_SB_'+str(subBatchId)+'_wip', "id": parentBatchId+'_SB_'+str(subBatchId)+'_wip',
...@@ -186,6 +187,7 @@ class BatchesWIPShort(plugin.InputPreparationPlugin): ...@@ -186,6 +187,7 @@ class BatchesWIPShort(plugin.InputPreparationPlugin):
# creates a batch in a station # creates a batch in a station
def createBatch(self,data,stationId,batchId,batchName,numberOfUnits,unitsToProcess=0): def createBatch(self,data,stationId,batchId,batchName,numberOfUnits,unitsToProcess=0):
# print 'creating batch',stationId,batchId,numberOfUnits # print 'creating batch',stationId,batchId,numberOfUnits
if stationId:
data['graph']['node'][stationId]['wip'].insert(0,{ data['graph']['node'][stationId]['wip'].insert(0,{
"_class": 'Dream.Batch', "_class": 'Dream.Batch',
"id": batchId+'_wip', "id": batchId+'_wip',
......
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