Commit 2a40bebd authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

BF: Always use file lock if it exists

parent 969f44e3
......@@ -198,7 +198,7 @@ class HDFStoreCollection(object):
for the file with the given ``idx``.
"""
if mode in ('w', 'a', 'r+') and self.__fileLocks is not None:
if self.__fileLocks is not None:
lock = self.__fileLocks[idx]
else:
lock = mp.Lock()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment