Commit ba30dfc5 authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Fix dtype not existing with HDF5Loader

parent 8d62cfa0
Pipeline #46644 passed with stage
in 5 minutes and 40 seconds
...@@ -753,7 +753,8 @@ class FullFieldPipeline: ...@@ -753,7 +753,8 @@ class FullFieldPipeline:
el = time() - t0 el = time() - t0
shp = self.chunk_reader.data.shape shp = self.chunk_reader.data.shape
GB = np.prod(shp) * self.chunk_reader.dtype.itemsize / 1e9 itemsize = self.chunk_reader.dtype.itemsize if hasattr(self.chunk_reader, "dtype") else 4
GB = np.prod(shp) * itemsize / 1e9
self.logger.info( self.logger.info(
"Read subvolume %s (%.2f GB) in %.2f s: %.3f GB/s" "Read subvolume %s (%.2f GB) in %.2f s: %.3f GB/s"
% (str(shp), GB, el, GB/el) % (str(shp), GB, el, GB/el)
......
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