def get_chart():
    mc = 0.04
    bhe = 0.9

    chart = []
    for dbcg in range(5000, 7600, 100) + range(7600, 8025, 25):
        sg = sg_from_dry_basis(dbcg / 10000.0, moisture_content=mc, brew_house_efficiency=bhe)
        gu = sg_to_gu(sg)
        chart.append([round(dbcg / 100.0, 2), round(gu, 2), round(sg, 4)])
    return chart
예제 #2
0
def get_chart():
    mc = 0.04
    bhe = 0.9

    chart = []
    for dbcg in range(5000, 7600, 100) + range(7600, 8025, 25):
        sg = sg_from_dry_basis(dbcg / 10000.0,
                               moisture_content=mc,
                               brew_house_efficiency=bhe)
        gu = sg_to_gu(sg)
        chart.append([round(dbcg / 100.0, 2), round(gu, 2), round(sg, 4)])
    return chart
예제 #3
0
def get_gravity(original_volume, final_volume, gravity):
    """
    Convert gravity at original volume to gravity at final volume
    """
    return gu_to_sg(sg_to_gu(gravity) * original_volume / final_volume)
예제 #4
0
 def test_sg_to_gu(self):
     gu = sg_to_gu(1.057)
     self.assertEquals(round(gu, 2), 57.0)
예제 #5
0
 def test_sg_to_gu(self):
     gu = sg_to_gu(1.057)
     self.assertEquals(round(gu, 2), 57.0)