def read_data_sweep(file) -> list:
    """Reads the data from the files and returns a list containing of 3 sub-lists.

        Parameters
        ----------
        file : file
            File containing all the data, comma-seperated

        Returns
        ------
        list:
            list of all the data.
    """
    encoder = []
    sigma = []
    delta = []
    for line in file:
        data = line.split(',')
        encoder.append(float(data[0]))
        sigma.append(float(data[1]))
        delta.append(float(data[2]))
    return [encoder, sigma, delta]