fields.buffers.core.HDF5Buffer.transpose#

HDF5Buffer.transpose(axes=None, *args, inplace: bool = False, **kwargs) BufferBase[source]#

Return a transposed copy of this buffer.

The transposition is performed using the NumPy-compatible array returned by as_repr().

Parameters:
  • axes (tuple of int, optional) – By default, reverses the dimensions. If specified, reorders the axes accordingly.

  • *args – Additional positional arguments forwarded to from_array().

  • inplace (bool, optional) – If True, values for file, name, and overwrite are ignored; the dataset underlying the calling buffer is directly replaced and the object is updated and returned in-place.

  • **kwargs – Additional keyword arguments forwarded to and from_array(). If inplace is True, then these are forwarded to replace_dataset().

Returns:

A new transposed buffer.

Return type:

BufferBase