mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
Fixes clearing of cache when opening subsequent files
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user