Skip to content

Commit ce7b8fd

Browse files
committed
testing fix for #460
1 parent e3570f0 commit ce7b8fd

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

archive/ukmon_pylib/reports/getSolutionStati.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ def getSolutionStati(fname):
9292
return totnew, totchk, gotnew, gotchk
9393

9494

95+
def parseDistriblog(logname):
96+
lis = open(logname,'r').readlines()
97+
dta = [x for x in lis if ('added to fails' in x or ('saved' in x and 'to' in x)) and ('CorrelateEngine' in x or 'CorrelateRMS' in x)]
98+
offset = 49 if 'match' in logname else 76
99+
for dd in dta:
100+
print(dd[offset:].strip())
101+
102+
95103
if __name__ == '__main__':
96104
fname = sys.argv[1]
97-
print(getSolutionStati(fname))
105+
print(parseDistriblog(fname))

0 commit comments

Comments
 (0)