Optimise create owner history to not rely on a person and organisation lookup, speeding up long procedures

This commit is contained in:
Dion Moult
2021-10-01 11:05:35 +10:00
parent 8bcec29429
commit 0a27308532
11 changed files with 92 additions and 107 deletions
+1 -2
View File
@@ -13,6 +13,5 @@ class IFC2X3:
@pytest.fixture(autouse=True)
def setup(self):
self.file = ifcopenshell.api.run("project.create_file", version="IFC2X3")
ifcopenshell.api.owner.settings.get_person = lambda ifc: ifc.createIfcPerson()
ifcopenshell.api.owner.settings.get_organisation = lambda ifc: ifc.createIfcOrganization()
ifcopenshell.api.owner.settings.get_user = lambda ifc: ifc.createIfcPersonAndOrganization()
ifcopenshell.api.owner.settings.get_application = lambda ifc: ifc.createIfcApplication()