h5tools Package¶
h5tools Package¶
Created on Sun Aug 18 22:31:59 2013
@author: thomas
This file only serves to signal that the content of the folder is a Python package.
h52np Module¶
Created on Fri Oct 25 16:30:23 2013
@author: Thomas Schatz
h5_handler Module¶
Created on Tue Oct 15 09:48:31 2013
@author: Thomas Schatz
h5io Module¶
Created on Sun Jan 19 17:06:15 2014
@author: Thomas Schatz
np2h5 Module¶
Created on Thu Sep 19 13:46:18 2013
@author: Thomas Schatz
Class for efficiently writing to disk (in a specified dataset of a HDF5 file) simple two-dimensional numpy arrays that are incrementally generated along the first dimension. It uses buffers to avoid small I/O.
It needs to be used within a ‘with’ statement, so as to handle buffer flushing and opening and closing of the underlying HDF5 file smoothly.
Buffer size should be chosen according to speed/memory trade-off. Due to cache issues there is probably an optimal size.
The size of the dataset to be written must be known in advance, excepted when overwriting an existing dataset. Not writing exactly the expected amount of data causes an Exception to be thrown excepted is the fixed_size option was set to False when adding the dataset.