def collect_hmeans(path):
    """ Collects hmean values in log file. """

    hmeans = []
    keyword = 'hmean='
    with open(path) as read_file:
        content = [line.strip() for line in read_file]
        for line in content:
            if keyword in line:
                hmeans.append(float(line.split(keyword)[-1]))
    return hmeans