# Path: brew/constants.py
# FC_DIFF_TWO_ROW = 0.017
# 
# Path: brew/constants.py
# LITERS_OF_WORT_AT_SG = 386.0
# 
# Path: brew/constants.py
# MOISTURE_CORRECTION = 0.0
# 
# Path: brew/constants.py
# MOISTURE_FINISHED_MALT = 0.04
# 
# Path: brew/constants.py
# PPG_TO_HWE_CONVERSION = LITER_PER_GAL * POUND_PER_KG
# 
# Path: brew/constants.py
# SUCROSE_PLATO = 11.486
# 
# Path: brew/constants.py
# SUCROSE_PPG = 46.214
# 
# Path: brew/validators.py
# def validate_percentage(percent):
#     """
#     Validate decimal percentage
# 
#     :param float percent: Percentage between 0.0 and 1.0
#     :return: percentage
#     :rtype: float
#     :raises ValidatorException: If decimal percentage not between 0.0 and 1.0
#     """
#     if 0.0 <= percent <= 1.0:
#         return percent
#     raise ValidatorException(u"Percentage values should be in decimal format")
# 
# Path: brew/utilities/sugar.py
# def gu_to_sg(gu):
#     """
#     Gravity Units to Specific Gravity
# 
#     :param float gu: Gravity Units
#     :return: Specific Gravity
#     :rtype: float
#     """
#     return 1 + (gu / 1000.0)


from ..constants import FC_DIFF_TWO_ROW
from ..constants import LITERS_OF_WORT_AT_SG
from ..constants import MOISTURE_CORRECTION
from ..constants import MOISTURE_FINISHED_MALT
from ..constants import PPG_TO_HWE_CONVERSION
from ..constants import SUCROSE_PLATO
from ..constants import SUCROSE_PPG
from ..validators import validate_percentage
from .sugar import gu_to_sg
# -*- coding: utf-8 -*-

__all__ = [
    u"dry_to_liquid_malt_weight",
    u"liquid_to_dry_malt_weight",
    u"grain_to_liquid_malt_weight",
    u"liquid_malt_to_grain_weight",
    u"dry_malt_to_grain_weight",
    u"grain_to_dry_malt_weight",
    u"specialty_grain_to_liquid_malt_weight",
    u"liquid_malt_to_specialty_grain_weight",
    u"fine_grind_to_coarse_grind",
    u"coarse_grind_to_fine_grind",
    u"dry_basis_to_as_is_basis",
    u"as_is_basis_to_dry_basis",
    u"sg_from_dry_basis",
    u"plato_from_dry_basis",
    u"basis_to_hwe",
    u"hwe_to_basis",
    u"ppg_to_hwe",
    u"hwe_to_ppg",
]



# Path: brew/constants.py
# FC_DIFF_TWO_ROW = 0.017
# 
# Path: brew/constants.py
# LITERS_OF_WORT_AT_SG = 386.0
# 
# Path: brew/constants.py
# MOISTURE_CORRECTION = 0.0
# 
# Path: brew/constants.py
# MOISTURE_FINISHED_MALT = 0.04
# 
# Path: brew/constants.py
# PPG_TO_HWE_CONVERSION = LITER_PER_GAL * POUND_PER_KG
# 
# Path: brew/constants.py
# SUCROSE_PLATO = 11.486
# 
# Path: brew/constants.py
# SUCROSE_PPG = 46.214
# 
# Path: brew/validators.py
# def validate_percentage(percent):
#     """
#     Validate decimal percentage
# 
#     :param float percent: Percentage between 0.0 and 1.0
#     :return: percentage
#     :rtype: float
#     :raises ValidatorException: If decimal percentage not between 0.0 and 1.0
#     """
#     if 0.0 <= percent <= 1.0:
#         return percent
#     raise ValidatorException(u"Percentage values should be in decimal format")
# 
# Path: brew/utilities/sugar.py
# def gu_to_sg(gu):
#     """
#     Gravity Units to Specific Gravity
# 
#     :param float gu: Gravity Units
#     :return: Specific Gravity
#     :rtype: float
#     """
#     return 1 + (gu / 1000.0)


# Path: brew/utilities/malt.py
from ..constants import FC_DIFF_TWO_ROW
from ..constants import LITERS_OF_WORT_AT_SG
from ..constants import MOISTURE_CORRECTION
from ..constants import MOISTURE_FINISHED_MALT
from ..constants import PPG_TO_HWE_CONVERSION
from ..constants import SUCROSE_PLATO
from ..constants import SUCROSE_PPG
from ..validators import validate_percentage
from .sugar import gu_to_sg

# -*- coding: utf-8 -*-

__all__ = [
    u"dry_to_liquid_malt_weight",
    u"liquid_to_dry_malt_weight",
    u"grain_to_liquid_malt_weight",
    u"liquid_malt_to_grain_weight",
    u"dry_malt_to_grain_weight",
    u"grain_to_dry_malt_weight",
    u"specialty_grain_to_liquid_malt_weight",
    u"liquid_malt_to_specialty_grain_weight",
    u"fine_grind_to_coarse_grind",
    u"coarse_grind_to_fine_grind",
    u"dry_basis_to_as_is_basis",
    u"as_is_basis_to_dry_basis",
    u"sg_from_dry_basis",
    u"plato_from_dry_basis",
    u"basis_to_hwe",
    u"hwe_to_basis",
    u"ppg_to_hwe",
    u"hwe_to_ppg",
]



def dry_to_liquid_malt_weight(malt):