Repository navigation
Add a Reconciliation extraction column to the data reconciliation reports - #436
Merged
Merged
Conversation
…orts A data reconciliation run has two steps: omc extracts the model to reconcile in its back end, and the executable computes the reconciliation. The reports only showed the second one. A failed extraction looked like any other back end failure, and a model that was extracted but failed later in the back end looked like a failed extraction (OpenModelica/OpenModelica#14817). A model counts as extracted when omc wrote <model>_Reconciled_tmp.mo, which both back ends write at the end of the extraction. The file is collected with the other data reconciliation files, also when the run wrote no report, and the cell of the library page links it. The result tables keep the status in a new drextracted column, added to the existing sqlite and PostgreSQL tables, so that the overview can count it next to "Reconciliation computation". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to OpenModelica/OpenModelica#14817: a column that says whether the extraction was successful, left of "Reconciliation computation" (follow-up of #435).
A data reconciliation run has two steps: omc extracts the model to reconcile in its back end, and the executable computes the reconciliation. The reports only showed the second one. A failed extraction looked like any other back end failure, and a model that was extracted but failed later in the back end looked like a failed extraction.
What counts as extracted: omc wrote
<model>_Reconciled_tmp.mo. Both back ends write that file at the end of the extraction, and the executable reconciles it.Changes
testmodel.py: recordsextractedand collects the extracted model with the other data reconciliation files, also when the run wrote no report (omc failed after the extraction).extracted(linking the extracted model) orfailed.drextractedcolumn in the branch tables, which the overview reads. Existing sqlite tables get it with default 0 (schema version 7), existing PostgreSQL tables get it as a nullable column, likeinvalidbefore it. A row without the value counts as extracted when it got through the back end.The reports of the other libraries are unchanged.
Local test (omc v1.28.0-dev.1860, both configurations, 66 models each)
So 4 TSP models are extracted and then fail later in the back end, and 3 models of the 66 fail the extraction itself (Splitter8, TSP_Pipe4, PressureLoss_DR). Every link of the generated library pages resolves. The sanityCheck run of the CI gives the expected row with sqlite and with a local PostgreSQL, and adding the column to an existing PostgreSQL table was tested there too.
generated by Claude Code
🤖 Generated with Claude Code