traveler.skims.omx.OMX.add_blank_matrix#
- OMX.add_blank_matrix(name, dtype=None, shape=None, complevel=1, complib='zlib', **kwargs)[source]#
Add a blank matrix to the OMX file.
- Parameters:
name (str) – The name of the matrix to add.
dtype (numpy.dtype, optional) – The data type for the new matrix. If not given, float64 is assumed.
shape (tuple, optional) – The shape of the matrix to add. The first two dimensions must match the shape of any existing matrices; giving a shape is mostly used on initialization.
complevel (int, default 1) – Compression level.
complib (str, default 'zlib') – Compression library.
- Return type:
h5py.Dataset