Skip to content
Snippets Groups Projects
Commit 9e5b2b63 authored by Tue Herlau's avatar Tue Herlau
Browse files

Framework updates; remove progress bar, v0.0.7

parent 491657f8
No related branches found
No related tags found
No related merge requests found
File added
File added
File added
......@@ -254,14 +254,18 @@ class Report():
if "precomputed" in payloads[q.name][item.name]:
item._precomputed_payload = payloads[q.name][item.name]['precomputed']
def rm_progress_bar(txt):
# More robust version. Apparently length of bar can depend on various factors, so check for order of symbols.
nlines = []
for l in txt.splitlines():
i = l.find("|")
if i >0 and l[i+11] == "|":
pass
# print(l)
else:
pct = l.find("%")
ql = False
if pct > 0:
i = l.find("|", pct+1)
if i > 0 and l.find("|", i+1) > 0:
ql = True
if not ql:
nlines.append(l)
return "\n".join(nlines)
......@@ -272,5 +276,7 @@ def extract_numbers(txt):
all = rx.findall(txt)
all = [float(a) if ('.' in a or "e" in a) else int(a) for a in all]
if len(all) > 100:
print(txt)
raise Exception("unitgrade.unitgrade.py: Warning, many numbers!", len(all))
return all
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment