Commit aea2932a authored by Georgios Dagkakis's avatar Georgios Dagkakis

(Sub)Batch to receive units to process also as decimals

parent 493ce77e
......@@ -41,7 +41,7 @@ class Batch(Entity):
self.numberOfUnits=int(numberOfUnits)
self.numberOfSubBatches=1 #integer that shows in how many sub batches is the batch broken
self.subBatchList=[] #list that contains the sub-batches that this batch has been broken into
self.unitsToProcess=int(unitsToProcess)
self.unitsToProcess=int(float(unitsToProcess))
#===========================================================================
# finds the schedule of each child and returns the combined route
......
......@@ -37,7 +37,7 @@ class SubBatch(Entity):
currentStation=currentStation)
self.numberOfUnits=int(numberOfUnits)
self.parentBatch=parentBatch
self.unitsToProcess=int(unitsToProcess)
self.unitsToProcess=int(float(unitsToProcess))
# if the parent batch was not given find it or create it
if not self.parentBatch:
# check if the parent batch is already created. If not, then create it
......
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