mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-13 02:47:48 +00:00
merge_identical_objects to use quicker version of get_info
This commit is contained in:
@@ -120,8 +120,7 @@ class Debug(bonsai.core.tool.Debug):
|
||||
"""
|
||||
|
||||
def get_hash(element: ifcopenshell.entity_instance) -> int:
|
||||
# TODO: replace with get_info_2 after bonsai build update.
|
||||
return hash(json.dumps(element.get_info(include_identifier=False, recursive=True), sort_keys=True))
|
||||
return hash(json.dumps(element.get_info_2(include_identifier=False, recursive=True), sort_keys=True))
|
||||
|
||||
ifc_file = tool.Ifc.get()
|
||||
merged_element_types: dict[str, list[str]] = {}
|
||||
|
||||
Reference in New Issue
Block a user