From 8f157ad87df7abe86aa9900a1ac0d442bf5b11e1 Mon Sep 17 00:00:00 2001 From: Adrian Pop Date: Tue, 1 Dec 2026 11:14:11 +0100 Subject: [PATCH] Name the data reconciliation columns after what they show The reports of a data reconciliation library titled the simulation phase "Simulation (DR model)", which does not say much to somebody who does not know that the executable of such a run computes the reconciliation of the extracted model (OpenModelica/OpenModelica#14817). The phase is now titled "Reconciliation computation" in the library page and in the overview, whose branch table also says "Reconciliation computation time". The status column of the library page is titled "Reconciliation result" instead of "Data reconciliation". The reports of the other libraries are unchanged. Co-Authored-By: Claude Fable 5.2 --- README.md | 5 +++-- report.py | 6 +++--- shared.py | 4 ++++ test.py | 10 +++++----- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 9623d6bf..2234c509 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 689398f5..1e8bebce 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 b09c864a..13400565 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 4a5ac3a6..07a1a14c 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 ""),