Skip to content

Commit

Permalink
Allow to pass lock method to data container
Browse files Browse the repository at this point in the history
  • Loading branch information
pmrv committed Oct 5, 2023
1 parent 1aa8f6a commit f9a0fd2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_base/storage/datacontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def __new__(cls, *args, **kwargs):

return instance

def __init__(self, init=None, table_name=None, lazy=False, wrap_blacklist=()):
def __init__(self, init=None, table_name=None, lazy=False, wrap_blacklist=(), lock_method="warning"):
"""
Create new container.
Expand All @@ -269,7 +269,7 @@ def __init__(self, init=None, table_name=None, lazy=False, wrap_blacklist=()):
wrap_blacklist (tuple of types): any values in `init` that are instances of the given types are *not*
wrapped in :class:`.DataContainer`
"""
super().__init__(lock_method="warning")
super().__init__(lock_method=lock_method)
self.table_name = table_name
self._lazy = lazy
if init is not None:
Expand Down

0 comments on commit f9a0fd2

Please sign in to comment.