Commit 91c6b40f authored by Georgios Dagkakis's avatar Georgios Dagkakis Committed by Ioannis Papagiannopoulos

scrap distribution in new style

parent d6764934
...@@ -59,10 +59,9 @@ class BatchScrapMachine(Machine): ...@@ -59,10 +59,9 @@ class BatchScrapMachine(Machine):
# set the attributes of the scrap quantity distribution # set the attributes of the scrap quantity distribution
if not scrapQuantity: if not scrapQuantity:
scrapQuantity = {'distributionType': 'Fixed', scrapQuantity = {'Fixed':{'mean': 0}}
'mean': 0}
self.scrapRng=RandomNumberGenerator(self, **scrapQuantity) self.scrapRng=RandomNumberGenerator(self, scrapQuantity)
from Globals import G from Globals import G
G.BatchScrapMachineList.append(self) G.BatchScrapMachineList.append(self)
......
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