mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Optimise create owner history to not rely on a person and organisation lookup, speeding up long procedures
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user