brew.utilities.color¶
-
color.
srm_to_ebc
(srm)¶ Convert SRM to EBC Color
Parameters: srm (float) – SRM Color Returns: EBC Color Return type: float
-
color.
ebc_to_srm
(ebc)¶ Convert EBC to SRM Color
Parameters: ebc (float) – EBC Color Returns: SRM Color Return type: float
-
color.
calculate_mcu
(grain_weight, beer_color, final_volume, units=u'imperial')¶ Calculate MCU from Grain
Parameters: - grain_weight (float) – Grain weight in lbs or kg
- beer_color (float) – Beer color in deg Lovibond
- final_volume (float) – Final Volume in gal or liters
- units (str) – The units
Source:
-
color.
calculate_srm_mosher
(mcu)¶ Mosher Equation for SRM
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the MCU is < 7.0
-
color.
calculate_srm_daniels
(mcu)¶ Daniels Equation for SRM
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the MCU is < 11.0
-
color.
calculate_srm_daniels_power
(mcu)¶ Daniels Power Equation for SRM based on work by Druey
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the SRM is > 50.0
-
color.
calculate_srm_noonan_power
(mcu)¶ Noonan Power Equation for SRM based on work by Druey
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the SRM is > 50.0
-
color.
calculate_srm_morey_hybrid
(mcu)¶ A hybrid approach used by Morey for SRM.
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the MCU is > 50.0 Assumptions:
- SRM is approximately equal to MCU for values from 0 to 10.
- Homebrew is generally darker than commercial beer.
- Base on the previous qualitative postulate, I assumed that Ray Daniels’ predicted relationship exists for beers with color greater than 10.
- Since Mosher’s equation predicts darker color than Daniels’ model for values of MCU greater than 37, I assumed that Mosher’s approximation governed beer color for all values more than 37 MCUs.
- Difference in color for beers greater than 40 SRM are essentially impossible to detect visually; therefore, I limited the analysis to SRM of 50 and less.
Source:
-
color.
calculate_srm_morey
(mcu)¶ Morey Equation for SRM
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the SRM is > 50.0 Source:
-
color.
calculate_srm
(mcu)¶ General SRM calculation uses the Morey Power Equation
Parameters: mcu (float) – The Malt Color Units Returns: SRM Color Return type: float Raises: ColorException – If the SRM is > 50.0
-
color.
lovibond_to_srm
(lovibond)¶ Convert deg Lovibond to SRM
Parameters: lovibond (float) – The degrees Lovibond Returns: SRM Color Return type: float Source:
-
color.
srm_to_lovibond
(srm)¶ Convert SRM to deg Lovibond
Parameters: srm (float) – SRM Color Returns: The degrees Lovibond Return type: float Source:
-
color.
srm_to_a430
(srm, dilution=1.0)¶ Get attenuation at A430 from SRM and dilution
Parameters: - srm (float) – SRM Color
- dilution (float) – The dilution factor (D=1 for undiluted, D=2 for 1:1 dilution, etc)
Returns: The attenuiation at 430nm
Return type: float
Source:
-
color.
ebc_to_a430
(ebc, dilution=1.0)¶ Get attenuation at A430 from EBC and dilution
Parameters: - ebc (float) – EBC Color
- dilution (float) – The dilution factor (D=1 for undiluted, D=2 for 1:1 dilution, etc)
Returns: The attenuiation at 430nm
Return type: float
Source: