stanley-king 2 年之前
父节点
当前提交
e38bebf6cf
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plot/refill/DataStream.py

+ 1 - 1
plot/refill/DataStream.py

@@ -26,7 +26,7 @@ def day_stamp(stamp):
 
 def open_hdf5(file, is_wirte):
     if is_wirte:
-        return h5py.File(file, 'a', libver='latest')
+        return h5py.File(file, 'a', libver='latest', swmr=True)
     else:
         return h5py.File(file, 'r', libver='latest', swmr=True)