from brewdayTrio import *
stores=bd3inventory()
marisOtter = bd3Fermentable()
marisOtter.name="Pale Maris Otter"
marisOtter.calculateFromYield(80)
marisOtter.color=6
marisOtter.isGrain=1
marisOtter.mustMash=1
biscuit = bd3Fermentable()
biscuit.name="Biscuit (Belgian)"
biscuit.calculateFromYield(77.9)
biscuit.color=45.3
biscuit.isGrain=1
biscuit.mustMash=1
goldensyrup = bd3Fermentable()
goldensyrup.name="Golden Syrup (Lyle & Tate)"
goldensyrup.calculateFromYield(100)
goldensyrup.color=0
goldensyrup.isAdjunct=1
goldensyrup.addBoil=1
stores.add(marisOtter,6000, 0.00143)
stores.add(biscuit,250, 0.0044)
stores.add(goldensyrup,200,0.189)
suffolkredblonde = bd3Recipe()
suffolkredblonde.batch_size_required=15
suffolkredblonde.addIngredient(marisOtter,3000)
suffolkredblonde.addIngredient(biscuit,250)
suffolkredblonde.addIngredient(goldensyrup,100)
suffolkredblonde.calculate()
allena29@ruby:~/python/brewday$ python testRecipe.py
calculate: Calculating expected gravity
calculate: fermentable: 3000gm Pale Maris Otter
: contribution = 61.44
: 61.44 = 3.0 * 307.2 / 15
calculate: fermentable: 250gm Biscuit (Belgian)
: contribution = 4.9856
: 4.9856 = 0.25 * 299.136 / 15
calculate: fermentable: 100gm Golden Syrup (Lyle & Tate)
: contribution = 2.56
: 2.56 = 0.1 * 384.0 / 15
calculate: correcting gravity based on mash effiency of 75 %
: estimated_gravity = 51.7392
: 51.739 = 68.986 * 0.75
: 1.052 = 1 + (51.739/1000)