From cecfca83f76d4f95ba5692f544d5b8a0bfb1d8b7 Mon Sep 17 00:00:00 2001 From: AnHeuermann <38031952+AnHeuermann@users.noreply.github.com> Date: Tue, 16 Jan 2024 09:49:34 +0100 Subject: [PATCH] Fixing Python string - Error was introduced by 74f1379 --- testmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testmodel.py b/testmodel.py index 4dfd562..239ffe0 100755 --- a/testmodel.py +++ b/testmodel.py @@ -529,7 +529,7 @@ def sendExpressionOldOrNew(cmd): # Create a file containing only the calibrated variables, for easy display lstfiles = "\n".join(['
  • %s (javascript) (csv)
  • ' % (str.split(str(f),".diff.",1)[1],str(os.path.basename(f)),str(os.path.basename(f))) for f in diffFiles]) with open(prefix+".html", 'w') as fp: - fp.write("

    %s differences from the reference file

    startTime: %g

    stopTime: %g

    Simulated using tolerance: %g

    " % (conf["modelName"], startTime, stopTime, tolerance, lstfiles)); + fp.write('

    %s differences from the reference file

    startTime: %g

    stopTime: %g

    Simulated using tolerance: %g

    ' % (conf["modelName"], startTime, stopTime, tolerance, lstfiles)) for var in diffVars: if "/" in var: continue # Quoted identifier, or possibly an error message... Either way, avoid crapping out below