import csv


def get_ycoordinates(filename):
    """Transforms CSV file of Y coordinates (new line seperated) to list"""
    with open(filename) as o:
        y = [float(item) for sublist in csv.reader(o) for item in sublist]
    return y