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)