Esempio n. 1
0
 def __init__(self, folder, name=None, filename=None):
     
     
     self.fermentables = []
     self.hops = []
     self.yeasts = []
     self.otherIngredients = []
     self.batchSize = 0.
     self.targetOG = 0.
     self.description = 'Add a description'
     self.instructions = 'Add instructions'
     
     BrewFile.__init__(self, folder, 'recip', name, filename)
Esempio n. 2
0
    def __init__(self, folder, name=None, filename=None):
        #BrewFile.__init__(self, folder, 'proj', name, filename)

        self.otherIngredients = []        
        self.fermentables = []
        self.hops = []
        self.style = Style()
        self.batchSize = 0.
        self.daysInPrimary = 0
        self.daysInSecondary = 0
        self.boilSize = 0.
        self.boilTime = 0
        self.tankLoss = 0.
        self.actualOG = 0.
        self.actualColor = 0
        self.actualFG = 0.      
        self.notes = ''
        self.yeast = Yeast() #TODO: make this a list?
        self.hopFormulaName = 'Rager'
        self.brewDate = date.today().strftime("%b %d, %Y")
        
        BrewFile.__init__(self, folder, 'proj', name, filename)
        


        #Calculated project data (not saved, calculated on load)
        self.calcOG = 1.
        self.totalColor = 0
        self.calcSRM = 0
        self.boilOG = 1.
        self.totalIBU = 0
        self.BUGU = 0.
        self.actualAtten = 0.
        self.actualABW = 0.
        self.actualABV = 0.
        self.actualCal = 0.
        self.calcAtten = Range((0.,0.))
        self.calcFG  = Range((0.,0.))
        self.calcABW = Range((0.,0.))
        self.calcABV = Range((0.,0.))
        self.calcCal = Range((0.,0.))