traveler.core.omx.OMX.add_lookup#

OMX.add_lookup(name, obj, *, overwrite=False, complevel=1, complib='zlib', ignore_shape=False, **kwargs)[source]#

Add a lookup mapping to the OMX file.

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

  • obj (array-like) – The data for the new matrix.

  • overwrite (bool, default False) – Whether to overwrite an existing matrix with the same name.

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

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

  • ignore_shape (bool, default False) – Whether to ignore all checks on the shape of the lookup being added. Setting this to True allows adding a lookup with a different length than either of the two shape dimensions, which may result in an invalid OMX file.

Return type:

h5py.Dataset