Fixes clearing of cache when opening subsequent files

This commit is contained in:
Richard Brice
2026-08-29 15:34:03 -07:00
parent 5bbd5ea1b8
commit 22b7f56ce4
+4
View File
@@ -125,6 +125,8 @@ class IfcStore:
future: list[TransactionStep] = [] future: list[TransactionStep] = []
schema_identifiers = ["IFC4", "IFC2X3", "IFC4X3_ADD2"] schema_identifiers = ["IFC4", "IFC2X3", "IFC4X3_ADD2"]
session_files: dict[str, ifcopenshell.file] = {} session_files: dict[str, ifcopenshell.file] = {}
cache: Optional[ifcopenshell.geom.serializers.hdf5] = None
cache_path: str = ""
@staticmethod @staticmethod
def purge(): def purge():
@@ -143,6 +145,8 @@ class IfcStore:
IfcStore.future = [] IfcStore.future = []
IfcStore.schema_identifiers = ["IFC4", "IFC2X3", "IFC4X3_ADD2"] IfcStore.schema_identifiers = ["IFC4", "IFC2X3", "IFC4X3_ADD2"]
IfcStore.session_files = {} IfcStore.session_files = {}
IfcStore.cache = None
IfcStore.cache_path = ""
@staticmethod @staticmethod
def get_file() -> ifcopenshell.file | None: def get_file() -> ifcopenshell.file | None: