diff --git a/README.md b/README.md index 9623d6b..2234c50 100644 --- a/README.md +++ b/README.md @@ -156,8 +156,9 @@ different OpenModelica versions, according to the conditions of the the model's simulation flags, its `-sx` measurements included, are then given to `translateModel` too, and the report the run writes (`.html` and the pages it links) is published in `files/.dr/`, linked as - `(dr)` next to `(sim)`, with a *Data reconciliation* column in the library - page. + `(dr)` next to `(sim)`, with a *Reconciliation result* column in the library + page. The simulation columns of the reports are titled *Reconciliation + computation* for such a library. [configs/dataReconciliation-newBackend.json](./configs/dataReconciliation-newBackend.json) is the same configuration with `--newBackend`; it fills the branch `dataReconciliation-newBackend`, and `overview-dataReconciliation.html` has diff --git a/report.py b/report.py index 689398f..1e8bebc 100755 --- a/report.py +++ b/report.py @@ -39,7 +39,7 @@ libnames = set(shared.libname(library,conf) for (library,conf) in configs) # What a data reconciliation run simulates is the model the reconciliation # extracted, not the library's model. -simulationLabel = "Simulation (DR model)" if configs and all(conf.get("dataReconciliation") for (library,conf) in configs) else "Simulation" +simulationLabel = shared.DR_SIMULATION_LABEL if configs and all(conf.get("dataReconciliation") for (library,conf) in configs) else "Simulation" entryhead = "BranchTotalParsingFrontendBackendSimCodeTemplatesCompilation%sVerification\n" % simulationLabel db = resultsdb.connect(args.db) @@ -186,8 +186,8 @@ def branchesTable(view): t[branch]["simulate"], t[branch]["verify"], ' class="warning"' if expected[view] != t[branch]["total"] else "", t[branch]["total"]) for branch in branches] return ('
\n' - '\n%s
%s
BranchVersionBuild timeExecution timeSimulation time%s# Verify# Total
\n' - % (view, BRANCH_CAPTIONS[view], simulateLabel, "".join(lines))) + 'Execution time%s time%s# Verify# Total\n%s\n' + % (view, BRANCH_CAPTIONS[view], simulationLabel, simulateLabel, "".join(lines))) template = open("overview.html.tpl").read() replacements = ( diff --git a/shared.py b/shared.py index b09c864..1340056 100644 --- a/shared.py +++ b/shared.py @@ -202,6 +202,10 @@ def libname(library, conf): return library+"_"+conf["libraryVersionNameForTests"] if conf["libraryVersionNameForTests"] else library return library+("_"+conf["libraryVersion"] if conf["libraryVersion"]!="default" else "")+(("_" + conf["configExtraName"]) if "configExtraName" in conf else "") +# What the reports of a data reconciliation run call the simulation phase: the +# executable of such a run computes the reconciliation of the extracted model. +DR_SIMULATION_LABEL = "Reconciliation computation" + # A model the run no longer found in its library; the reports ask for >= 0. DELETED_PHASE = -1 diff --git a/test.py b/test.py index 4a5ac3a..07a1a14 100755 --- a/test.py +++ b/test.py @@ -1347,7 +1347,7 @@ def drLink(filename_prefix, data): return ' (dr)' % (filename_prefix, os.path.basename(filename_prefix)) def drCell(conf, data): - """The Data reconciliation cell of a model, for the libraries tested with it.""" + """The Reconciliation result cell of a model, for the libraries tested with it.""" if not conf.get("dataReconciliation"): return "" dr = data.get("dr") or {} @@ -1362,8 +1362,8 @@ def drSummary(conf, stats): if not conf.get("dataReconciliation"): return ("", "", "") n = sum(1 for s in stats if (s[3].get("dr") or {}).get("reconciled")) - return ("Data reconciliation", '%d' % ("#00FF00" if n == len(stats) else "#FFCC66", n), - "Data reconciliation") + return ("Reconciliation result", '%d' % ("#00FF00" if n == len(stats) else "#FFCC66", n), + "Reconciliation result") def invalidCross(data): """A red cross for a model that needs non-standard Modelica, naming what it needs.""" @@ -1633,8 +1633,8 @@ def publishLibrary(libname): (u"#drSummaryHeader#", drSummaryHeader), (u"#drSummary#", drSummaryCell), (u"#drHeader#", drHeader), - (u"#simulationLabel#", "Simulation (DR model)" if conf.get("dataReconciliation") else "Simulation"), - (u"#simulateLabel#", "Simulation (DR model)" if conf.get("dataReconciliation") else "Simulate"), + (u"#simulationLabel#", shared.DR_SIMULATION_LABEL if conf.get("dataReconciliation") else "Simulation"), + (u"#simulateLabel#", shared.DR_SIMULATION_LABEL if conf.get("dataReconciliation") else "Simulate"), (u"#sysInfo#", html.escape(sysInfo)), (u"#omcVersion#", html.escape(omc_version)), (u"#fmiToolVersion#", ("

"+html.escape("FMI tool: %s" % fmisimulatorversion)+"

") if fmisimulatorversion else ""),