tophu.DatasetReader

class tophu.DatasetReader(*args, **kwargs)

An array-like interface for reading input datasets.

DatasetReader defines the abstract interface that types must conform to in order to be valid inputs to the multiscale_unwrap() function. Such objects must export NumPy-like dtype, shape, and ndim attributes and must support NumPy-style slice-based indexing.

See also

DatasetWriter

Methods

DatasetReader.__init__(*args, **kwargs)

DatasetReader.__getitem__(key, /)

Read a block of data.

Attributes

DatasetReader.dtype

Data-type of the array's elements.

DatasetReader.shape

Tuple of array dimensions.

DatasetReader.ndim

Number of array dimensions.