BatchDecomposition/Reassembly corrected

parent 2b2be4ee
......@@ -129,6 +129,7 @@ class BatchDecomposition(CoreObject):
# if the activeEntity is in the pendingEntities list then place the subBatches there
if activeEntity in G.pendingEntities:
G.pendingEntities.append(subBatch)
G.pendingEntities.remove(activeEntity)
activeEntity.numberOfSubBatches=self.numberOfSubBatches
self.timeLastEntityEnded=now()
......
......@@ -125,6 +125,8 @@ class BatchReassembly(CoreObject):
# if the activeEntity is in the pendingEntities list then place the subBatches there
if activeObjectQueue[0] in G.pendingEntities:
G.pendingEntities.append(batchToBeReassembled)
for entity in activeObjectQueue:
G.pendingEntities.remove(entity)
del activeObjectQueue[:]
batchToBeReassembled.numberOfSubBatches = 1
......
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