def levels_from_file(filename):
    with open(filename) as f:
        lst = [float(line.rstrip()) for line in f]
    return lst
def levels_from_file(filename):
    with open(filename) as f:
        lst = [float(line.rstrip()) for line in f]
    return lst