You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
ll = [chr(i) for i in range(65, 90)]
|
|
|
|
preList = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y']
|
|
|
|
labels = []
|
|
for pre in preList:
|
|
for num in [1, 2]:
|
|
labels.append(f"{pre}{num}")
|
|
|
|
print("Labels: ", labels)
|
|
|
|
#data labels
|
|
Labels = ['A1', 'A2', 'B1', 'B2', 'C1', 'C2', 'D1', 'D2', 'E1', 'E2', 'F1', 'F2', 'G1', 'G2', 'H1', 'H2', 'I1', 'I2', 'J1', 'J2', 'K1', 'K2', 'L1', 'L2', 'M1', 'M2', 'N1', 'N2', 'P1', 'P2', 'Q1', 'Q2', 'R1', 'R2', 'S1', 'S2', 'T1', 'T2', 'U1', 'U2', 'V1', 'V2', 'W1', 'W2', 'X1', 'X2', 'Y1', 'Y2']
|
|
|
|
#short path
|
|
ords = [1, 8, 38, 31, 44, 18, 7, 28, 6, 37, 19, 27, 17, 43, 30, 36, 46, 33, 20, 47, 21, 32, 39, 48, 5, 42, 24, 10, 45, 35, 4, 26, 2, 29, 34, 41, 16, 22, 3, 23, 14, 25, 13, 11, 12, 15, 40, 9, 1]
|
|
|
|
shortLabels = []
|
|
|
|
for ord in ords:
|
|
shortLabels.append(Labels[ord-1])
|
|
|
|
|
|
shortLabels = ['A1', 'D2', 'T2', 'Q1', 'W2', 'I2', 'D1', 'N2', 'C2', 'T1', 'J1', 'N1', 'I1', 'W1', 'P2', 'S2', 'X2', 'R1', 'J2', 'Y1', 'K1', 'Q2', 'U1', 'Y2', 'C1', 'V2', 'L2', 'E2', 'X1', 'S1', 'B2', 'M2', 'A2', 'P1', 'R2', 'V1', 'H2', 'K2', 'B1', 'L1', 'G2', 'M1', 'G1', 'F1', 'F2', 'H1', 'U2', 'E1', 'A1']
|
|
|
|
|
|
# ["B1", "I2", "N2", "X1", "B1"]
|
|
|