mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Fix #5039 - Assure count is an integer
This commit is contained in:
@@ -323,7 +323,7 @@ def _get_element_value(element: ifcopenshell.entity_instance, keys: list[str]) -
|
||||
elif isinstance(value, (list, tuple)):
|
||||
value = len(value)
|
||||
else:
|
||||
value = 1
|
||||
value = int(1)
|
||||
elif key == "class":
|
||||
value = value.is_a()
|
||||
elif key == "predefined_type":
|
||||
|
||||
Reference in New Issue
Block a user