import csv


def import_trials_duration(path):
    """
    Import some already existing local csv of times

    Parameters
    ----------
    path : string
        the path that the file is located in

    Returns
    -------
    list
        a list of times to be plotted or viewed
    """
    with open(path, "r") as times_file:
        csv_object = csv.reader(times_file)
        times = [[float(time) for time in row] for row in csv_object]
        return times