mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user