Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python3 compatibility #8

Open
Hedde opened this issue Feb 10, 2017 · 0 comments
Open

Python3 compatibility #8

Hedde opened this issue Feb 10, 2017 · 0 comments

Comments

@Hedde
Copy link

Hedde commented Feb 10, 2017

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')]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant