def get_in_units(value, units):
    """get a value in the required units """
    try:
        from pint import UnitRegistry
        ureg = UnitRegistry()
    except ImportError:
        raise ImportError('please install pint to use this module')
    return ureg.Quantity(value, units)
