Skip to content
Snippets Groups Projects
Commit 3113b998 authored by tuhe's avatar tuhe
Browse files

Fixed issue with max numbers extracted from output and use of format-string...

Fixed issue with max numbers extracted from output and use of format-string incompatible with grade-files
parent c17bbf4b
No related branches found
No related tags found
No related merge requests found
......@@ -107,7 +107,8 @@ def evaluate_report(report, question=None, qitem=None, passall=False, verbose=Fa
if question is not None and n+1 != question:
continue
print(f"Question {n+1}: {q.title}" + f" ({report.payloads[q.name].get('time', 0):.2f} seconds)" if q.name in report.payloads else "")
# Don't use f format strings.
print(f"Question {n+1}: {q.title}" + (" (" + str( np.round(report.payloads[q.name].get('time', 0), 2) ) + " seconds)" if q.name in report.payloads else "" ) )
print("="*nL)
q.possible = 0
q.obtained = 0
......
__version__ = "0.1.1c"
\ No newline at end of file
__version__ = "0.1.2"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment