data_cleaning.py
def make_classes(participants_data_list,participants_time_list,participants_list):
    """data process to make class Participant

    Parameters
    
    List of corresponding test1 & test2, test1 time & test 2 time, id list
    ----------

    Returns
    -------
    class of participants for the corresponding 2 tests


    """
    
    num=len(participants_list)
    
    Participants=sorted(list(csv.reader(open("./source_data/patients.csv"))))
    
    participants=[]
    
    t=0
    
    for i in range(num):

        n=int(participants_list[i])
        
        for l in Participants:
            if int(l[0])==n:
                
                if not l[1].isdigit():

                    print(n)
                    
                    break
                    

                data=[participants_data_list[j][i].astype(int) for j in range(len(participants_data_list)) ]

                time=[participants_time_list[j][i].astype(int) for j in range(len(participants_time_list)) ]
                
                                
                                
                bp0 = int(l[1])
                
                bp = {1: 2, 2: 0, 3: 1}[bp0]
                
                participant=Participant(data, time, n, bp,None)
                participants.append(participant)
                t+=1
                break

            
    return participants
data process to make class Participant

    Parameters
    
    List of corresponding test1 & test2, test1 time & test 2 time, id list
    ----------

    Returns
    -------
    class of participants for the corresponding 2 tests


    
data process to make class Participant
Parameters

List of corresponding test1 & test2, test1 time & test 2 time, id list

Returns

class of participants for the corresponding 2 tests
data process to make class Participant Parameters List of corresponding test1 & test2 test1 time & test 2 time id list Returns class of participants for the corresponding 2 tests
def make_classes(participants_data_list,participants_time_list,participants_list):
    num=len(participants_list)
    Participants=sorted(list(csv.reader(open("./source_data/patients.csv"))))
    participants=[]
    t=0
    for i in range(num):
        n=int(participants_list[i])
        for l in Participants:
            if int(l[0])==n:
                if not l[1].isdigit():
                    print(n)
                    break
                data=[participants_data_list[j][i].astype(int) for j in range(len(participants_data_list)) ]
                time=[participants_time_list[j][i].astype(int) for j in range(len(participants_time_list)) ]
                bp0 = int(l[1])
                bp = {1: 2, 2: 0, 3: 1}[bp0]
                participant=Participant(data, time, n, bp,None)
                participants.append(participant)
                t+=1
                break
    return participants
def make_classes ( participants_data_list , participants_time_list , participants_list ) : num = len ( participants_list ) Participants = sorted ( list ( csv . reader ( open ( "./source_data/patients.csv" ) ) ) ) participants = [ ] t = 0 for i in range ( num ) : n = int ( participants_list [ i ] ) for l in Participants : if int ( l [ 0 ] ) == n : if not l [ 1 ] . isdigit ( ) : print ( n ) break data = [ participants_data_list [ j ] [ i ] . astype ( int ) for j in range ( len ( participants_data_list ) ) ] time = [ participants_time_list [ j ] [ i ] . astype ( int ) for j in range ( len ( participants_time_list ) ) ] bp0 = int ( l [ 1 ] ) bp = { 1 : 2 , 2 : 0 , 3 : 1 } [ bp0 ] participant = Participant ( data , time , n , bp , None ) participants . append ( participant ) t += 1 break return participants
data process to make class Participant
Parameters
data process to make class Participant Parameters
"""data process to make class Participant

    Parameters
    
    List of corresponding test1 & test2, test1 time & test 2 time, id list
    ----------

    Returns
    -------
    class of participants for the corresponding 2 tests


    """
participants_data_list
participants_time_list
participants_list