Repository navigation
ci(re): the type objects scorer counts only a Tag rvt-rs leaves out as left out, and counts type objects by GlobalId (#1594) - #1648
Merged
Conversation
…s left out, and counts type objects by GlobalId (#1594) #1641 counted a value rvt-rs leaves out of any field as left out and not as a disagreement, and counted a type object with no Tag by its GlobalId and every other by its Tag, which moved the office's count from 470 to 623 without the export gaining an object.
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
Two fixes to
tools/re/type_objects_vs_ifc.pythat #1641's review found: theleft out, Revit writes a valuecarve-out now applies to theTagonly, so a field other than the plate type'sTagthat rvt-rs leaves out is a disagreement again; andtype objects in ourscounts every type object by its GlobalId, so the count no longer changes meaning when a type object has noTag.Motivation
#1641 (#1594) wrote an
IfcPlateTypewith noTagand counted that in the scorer. Its reviewer noted thatelif g is Nonewas written for every field, which would show a type object whoseNameis missing as left out and hide the disagreement; and that the last line mixed Tag-keyed objects (deduplicated by Tag) with GlobalId-keyed ones, so the office as built went from 470 to 623 type objects with no object gained.Changes
tools/re/type_objects_vs_ifc.py: the carve-out isfield == "tag" and g is None; the type objects are counted byGlobalId.Testing
Unit tests are banned in this repository; none are added.
type_objects_vs_ifc.txtdiffering on every model that has one, on thetype objects in oursline only (the count is now of objects, by GlobalId).src/, no docs, no schema.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #1594, #1641.