Change <logical> primitive data type from bool to enum

As it also has a third value "UNKNOWN" which has it's own meanig in IFC and therefore IfcLogical cannot be represented by simple booleans.

Example in Bonsai - https://i.imgur.com/xuPMcwA.png
This commit is contained in:
Andrej730
2025-01-24 16:12:38 +05:00
parent d37caedda7
commit f3fc55f246
3 changed files with 25 additions and 9 deletions
@@ -47,9 +47,9 @@ def get_primitive_type(
return "float"
elif "<number>" in data_type or "<integer>" in data_type:
return "integer"
elif "<boolean>" in data_type or "<logical>" in data_type:
elif "<boolean>" in data_type:
return "boolean"
elif "<enumeration" in data_type:
elif "<logical>" in data_type or "<enumeration" in data_type:
return "enum"
elif "<binary" in data_type:
return "binary"