def get_logg_from_atm_table_filename(filename):
    """
    Get logg from filename / directory name.

    :param filename: str;
    :return: float;
    """
    filename = filename if not str(filename).endswith('.csv') else str(filename
        ).replace('.csv', '')
    g = str(filename).split('_')[2][1:]
    return int(g) / 10.0
