20250313
This commit is contained in:
@ -330,6 +330,7 @@ def read_similar(filePath):
|
||||
SimiDict['one2one'] = []
|
||||
SimiDict['one2SN'] = []
|
||||
SimiDict['one2n'] = []
|
||||
SimiDict['algroStartToEnd'] = -1
|
||||
|
||||
with open(filePath, 'r', encoding='utf-8') as f:
|
||||
lines = f.readlines()
|
||||
@ -352,6 +353,13 @@ def read_similar(filePath):
|
||||
one2one_list, one2SN_list, one2n_list = [], [], []
|
||||
Flag_1to1, Flag_1toSN, Flag_1ton = False, False, False
|
||||
continue
|
||||
|
||||
if line.find("algroStartToEnd")>=0:
|
||||
alg_during = line.split(':')[1].strip()
|
||||
SimiDict['algroStartToEnd'] = int(alg_during)
|
||||
|
||||
|
||||
|
||||
|
||||
if line.find('oneToOne')>=0:
|
||||
Flag_1to1, Flag_1toSN, Flag_1ton = True, False,False
|
||||
@ -387,7 +395,7 @@ def read_similar(filePath):
|
||||
Dict['barcode'] = ''
|
||||
if label.find("_") > 0:
|
||||
bcd = label.split('_')[-1]
|
||||
if len(bcd)>=10 and bcd.isdigit():
|
||||
if len(bcd)>=8 and bcd.isdigit():
|
||||
Dict['barcode'] = bcd
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user