Minor doc improvements and SQL/stream code cleanup

This commit is contained in:
Dion Moult
2023-07-07 18:12:52 +10:00
parent bb7a73feac
commit 3e7afbed08
3 changed files with 5 additions and 10 deletions
+1 -3
View File
@@ -62,9 +62,7 @@ class sqlite(file):
self.ifc_class_references = {}
self.ifc_class_inverses = {}
for declaration in self.ifc_schema.declarations():
if not str(declaration).startswith("<entity"):
continue
for declaration in self.ifc_schema.entities():
# print('Dealing with declaration', declaration.name())
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
@@ -167,10 +167,7 @@ try:
self.ifc_class_references = {}
self.ifc_class_inverses = {}
for declaration in self.ifc_schema.declarations():
if not str(declaration).startswith("<entity"):
continue
for declaration in self.ifc_schema.entities():
self.ifc_class_names[declaration.name().upper()] = declaration.name()
self.ifc_class_subtypes[declaration.name()] = ifcopenshell.util.schema.get_subtypes(declaration)
@@ -54,13 +54,13 @@ class Patcher:
specified, it is treated as the angle to rotate in plan view (i.e.
around the Z axis). If all angle parameters are specified, then it
is treated as the angle to rotate around the X axis. Angles are in
decimal degrees.
decimal degrees and positive is anticlockwise.
:type ax: float,optional
:param ay: An optional angle to rotate by for 3D rotations along the Y
axis. Angles are in decimal degrees.
axis. Angles are in decimal degrees and positive is anticlockwise.
:type ay: float,optional
:param az: An optional angle to rotate by for 3D rotations along the Z
axis. Angles are in decimal degrees.
axis. Angles are in decimal degrees and positive is anticlockwise.
:type az: float,optional
Example: