stanley-king 2 роки тому
батько
коміт
a61c2eaace
2 змінених файлів з 2 додано та 2 видалено
  1. 1 1
      plot/refill/QueueListener.py
  2. 1 1
      plot/test_h5py.py

+ 1 - 1
plot/refill/QueueListener.py

@@ -50,7 +50,7 @@ class QueueListener(object):
     def prepare_data(self):
             try:
                 for _key, val in self._mHandlers.items():
-                    hfive = open_hdf5(val['name'],True)
+                    hfive = open_hdf5(val['name'], True)
                     if _key == 'merchant':
                         val['handler'] = MerchantWriter(hfive)
                     elif _key == 'channel':

+ 1 - 1
plot/test_h5py.py

@@ -16,7 +16,7 @@ class MyTestCase(unittest.TestCase):
     def test_chunk(self):
         file = '/var/www/html/data/stdata/test.hdf5'
         hfive = open_hdf5(file, True)
-        dset = hfive.create_dataset('chunkedc', (8, 86400),chunks=(8,3600))
+        dset = hfive.create_dataset('chunkede', (8, 86400),chunks=(8,3600))
         print(dset.chunks)
         print(time.time())
         for i in range(8):