Skip to content

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
DrunkOnJava merged 1 commit into
mainfrom
ci/type-objects-scorer-nits
Nov 10, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/type-objects-scorer-nits

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Two fixes to tools/re/type_objects_vs_ifc.py that #1641's review found: the left out, Revit writes a value carve-out now applies to the Tag only, so a field other than the plate type's Tag that rvt-rs leaves out is a disagreement again; and type objects in ours counts every type object by its GlobalId, so the count no longer changes meaning when a type object has no Tag.

Motivation

#1641 (#1594) wrote an IfcPlateType with no Tag and counted that in the scorer. Its reviewer noted that elif g is None was written for every field, which would show a type object whose Name is 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 is field == "tag" and g is None; the type objects are counted by GlobalId.

Testing

Unit tests are banned in this repository; none are added.

  • A scorer change only: no export byte changes, so there is no new Measure. The first Measure after it shows type_objects_vs_ifc.txt differing on every model that has one, on the type objects in ours line only (the count is now of objects, by GlobalId).
  • No src/, no docs, no schema.

Audit-honesty checklist

  • No capability claim changes; no changelog fragment (a scorer).
  • No emojis, no private paths.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source; no fixtures.

Breaking changes

None.

Related issues

Refs #1594, #1641.

…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.
@DrunkOnJava
DrunkOnJava merged commit 38dff86 into main Nov 10, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/type-objects-scorer-nits branch November 10, 2026 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant