Skip to content

Python3 compatibility #8

@Hedde

Description

@Hedde

Heads up for those interested, schema attribute assertion fails for python 3 (ifcfilereader.py:~76) suppose this is a regex flag problem as it seems very greedy for PY3..

PYTHON 2

[('GlobalId', 'IfcGloballyUniqueId'), ('OwnerHistory', 'IfcOwnerHistory'), ('Name', 'OPTIONAL IfcLabel'), ('Description', 'OPTIONAL IfcText'), ('ObjectType', 'OPTIONAL IfcLabel'), ('LongName', 'OPTIONAL IfcLabel'), ('Phase', 'OPTIONAL IfcLabel'), ('RepresentationContexts', 'SET [1:?] OF IfcRepresentationContext'), ('UnitsInContext', 'IfcUnitAssignment')]

PYTHON 3

[('\n\tGlobalId', 'IfcGloballyUniqueId'), ('\n\tOwnerHistory', 'IfcOwnerHistory'), ('\n\tName', 'OPTIONAL IfcLabel'), ('\n\tDescription', 'OPTIONAL IfcText'), ('\n UNIQUE\n\tUR1', 'GlobalId'), ('\n INVERSE\n\tHasAssignments', 'SET [0:?] OF IfcRelAssigns FOR RelatedObjects'), ('\n\tIsDecomposedBy', 'SET [0:?] OF IfcRelDecomposes FOR RelatingObject'), ('\n\tDecomposes', 'SET [0:1] OF IfcRelDecomposes FOR RelatedObjects'), ('\n\tHasAssociations', 'SET [0:?] OF IfcRelAssociates FOR RelatedObjects'), ('\n\tObjectType', 'OPTIONAL IfcLabel'), ('\n INVERSE\n\tIsDefinedBy', 'SET [0:?] OF IfcRelDefines FOR RelatedObjects'), ('\n WHERE\n\tWR1', "SIZEOF(QUERY(temp <* IsDefinedBy | 'IFC2X3.IFCRELDEFINESBYTYPE' IN TYPEOF(temp))) <= 1"), ('\n\tLongName', 'OPTIONAL IfcLabel'), ('\n\tPhase', 'OPTIONAL IfcLabel'), ('\n\tRepresentationContexts', 'SET [1:?] OF IfcRepresentationContext'), ('\n\tUnitsInContext', 'IfcUnitAssignment'), ('\n WHERE\n\tWR31', 'EXISTS(SELF\IfcRoot.Name)'), ('\n\tWR32', "SIZEOF(QUERY(Temp <* RepresentationContexts |\n 'IFC2X3.IFCGEOMETRICREPRESENTATIONSUBCONTEXT' IN TYPEOF(Temp)\n )) = 0"), ('\n\tWR33', 'SIZEOF(SELF\IfcObjectDefinition.Decomposes) = 0')]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions