tophu.DatasetWriter

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

An array-like interface for writing output datasets.

DatasetWriter defines the abstract interface that types must conform to in order to be valid outputs of 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

DatasetReader

Methods

DatasetWriter.__init__(*args, **kwargs)

Attributes

DatasetWriter.dtype

Data-type of the array's elements.

DatasetWriter.shape

Tuple of array dimensions.

DatasetWriter.ndim

Number of array dimensions.