Ejemplo n.º 1
0
def loadTest(test_file):
    lines = cm.readFile(test_file)
    P = []
    T = []
    for line in lines:
        tmp = line.strip().split(' ')
        P.append(int(tmp[3]) - 1)
        T.append(int(tmp[5]) - 1)
    return P, T
Ejemplo n.º 2
0
def loadTest(test_file):
    lines = cm.readFile(test_file)
    P=[]
    T=[]
    for line in lines:
        tmp = line.strip().split(' ')
        P.append(int(tmp[3])-1)
        T.append(int(tmp[5])-1)
    return P,T
Ejemplo n.º 3
0
def loadTest(test_file):
    lines = cm.readFile(test_file)
    Ps = {}
    Ts = {}
    for k in range(0, cm.SPAN_NUM):
        Ps[k] = []
        Ts[k] = []
    for line in lines:
        tmp = line.strip().split(' ')
        k = int(tmp[2]) - 1
        Ps[k].append(int(tmp[4]) - 1)
        Ts[k].append(int(tmp[6]) - 1)
    return Ps, Ts
Ejemplo n.º 4
0
def loadTest(test_file):
    lines = cm.readFile(test_file)
    Ps={}
    Ts={}
    for k in range(0,cm.SPAN_NUM):
        Ps[k]=[]
        Ts[k]=[]
    for line in lines:
        tmp = line.strip().split(' ')
        k = int(tmp[2]) - 1
        Ps[k].append(int(tmp[4])-1)
        Ts[k].append(int(tmp[6])-1)
    return Ps,Ts