def hrbool2bool(s):
    """Convert a string that a user might input to indicate a boolean value of
    either True or False and convert to the appropriate Python bool.

    * Note first that the case used in the string is ignored
    * 't', 'true', '1', 'yes', and 'one' all map to True
    * 'f', 'false', '0', 'no', and 'zero' all map to False

    Parameters
    ----------
    s : string

    Returns
    -------
    b : bool

    """
    s = str(s).strip()
    if s.lower() in ['t', 'true', '1', 'yes', 'one']:
        return True
    if s.lower() in ['f', 'false', '0', 'no', 'zero']:
        return False
    raise ValueError('Could not parse input "%s" to bool.' % s)