traveler.skims.omx.OMX.add_blank_lookup#

OMX.add_blank_lookup(name, dtype=None, shape=None, complevel=1, complib='zlib', **kwargs)[source]#

Add a blank lookup to the OMX file.

Parameters:
  • name (str) – The name of the matrix to add.

  • dtype (numpy.dtype, optional) – The data type for the new lookup. If not given, float64 is assumed.

  • shape (int, optional) – The length of the lookup to add. Must match one of the dimensions of an existing shape. If there is no existing shape, the shape will be initialized as a square with this size.

  • complevel (int, default 1) – Compression level.

  • complib (str, default 'zlib') – Compression library.

Return type:

h5py.Dataset