Repository navigation
ci: Measure's summary lists why bodies are still a record box, by reason, base beside head (#1645) - #1649
Merged
Conversation
…son, base beside head (#1645) tools/re/box_reasons.py sums exported.bounding_box_bodies and exported.saved_mesh_refusals over the models and samples whose diagnostics the run kept, so a change that moves boxes says which reason it took them from and the next decoder is chosen by the count it clears.
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.
Summary
Measure's step summary gains a section, "Why bodies are still a record box (base → head)": the count of bodies that are only their element record's box, by the reason the saved-mesh pass gives for not using the element's saved mesh, summed over the models and samples whose diagnostics the run kept.
Motivation
#1645. What keeps a box a box has been found by one-off probes on one file each time (RE-385, RE-397), and the next decoder was chosen by hand from them. #1647 puts the reason on each element and counts it in the diagnostics (
exported.saved_mesh_refusals); this lists those counts for a whole run, head beside base, so a change that moves boxes says which reason it cleared.Changes
tools/re/box_reasons.py: reads each model'sdiagnostics.json(exported.bounding_box_bodies,exported.saved_mesh_refusals) and prints the sums and, per reason, the base and head counts. A held-out model keeps counts only and is not in it. Where no diagnostics hold the field (an export that predates feat(ifc): an element still drawn as its record's box says why its saved mesh was not used, on the element and counted in the diagnostics (#1645) #1647) it says so..github/workflows/measure.yml: the sparse checkout of the summary job names the script, and the summary prints its output after "What the censuses counted apart".Testing
Unit tests are banned in this repository; none are added.
yaml.safe_load) and adds no expression.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #1645.