mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 22:50:21 +00:00
ifcopenshell.file - store default history_size in class instead of instance
This commit is contained in:
@@ -216,6 +216,7 @@ class file:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
wrapped_data: ifcopenshell_wrapper.file
|
wrapped_data: ifcopenshell_wrapper.file
|
||||||
|
history_size: int = 64
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
@@ -286,7 +287,6 @@ class file:
|
|||||||
args = filter(None, [schema])
|
args = filter(None, [schema])
|
||||||
args = map(ifcopenshell_wrapper.schema_by_name, args)
|
args = map(ifcopenshell_wrapper.schema_by_name, args)
|
||||||
self.wrapped_data = ifcopenshell_wrapper.file(*args)
|
self.wrapped_data = ifcopenshell_wrapper.file(*args)
|
||||||
self.history_size = 64
|
|
||||||
self.history = []
|
self.history = []
|
||||||
self.future = []
|
self.future = []
|
||||||
self.transaction: Optional[Transaction] = None
|
self.transaction: Optional[Transaction] = None
|
||||||
|
|||||||
Reference in New Issue
Block a user