Ejemplo n.º 1
0
class Subject():
    def __init__(self):

class Run():
    def __init__(self):

class Condition():
    def __init__(self):
    

root = '/media/katie/SocCog/'

f = open('/media/katie/SocCog/testexport.csv', 'r')

f = u.split_lines(f, '\t')

g = copy(f)

coldict = {col:i for i, col in enumerate(g[0])}

def getRun(line):
    sess = line[coldict['Session']]
    if line[coldict['ProcedureTarget']] == 'LearningTargetProc':
        phase = 'L'
        target = int(float(line[coldict['LearningTargetList']]))
    elif line[coldict['ProcedureTarget']] == 'MemoryTargetProc':
        phase = 'M'
        target = int(float(line[coldict['MemoryTargetList']]))
    else:
        return "", ""