MemDataset#

class caput.memdata.MemDataset(**kwargs)[source]#

Bases: _MemObjMixin

Base class for an in memory implementation of h5py.Dataset.

This is only an abstract base class. Use MemDatasetCommon or MemDatasetDistributed.

property attrs[source]#

Attributes attached to this object.

abstract property chunks[source]#

Chunk shape of the dataset.

Not implemented in base class.

abstract property compression[source]#

Name or identifier of HDF5 compression filter for the dataset.

Not implemented in base class.

abstract property compression_opts[source]#

Compression options for the dataset.

See HDF5 documentation for compression filters. Not implemented in base class.

abstract property dtype[source]#

Numpy data type of the dataset.

Not implemented in base class.

abstract property shape[source]#

Shape of the dataset.

Not implemented in base class.

Methods#

__deepcopy__(memo, /)

Called when copy.deepcopy is called on this class.

copy([order, shallow])

Create a new MemDataset from an existing one.

resize()

h5py datasets reshape() is different from numpy reshape.

view()

Return a pseudo-view of this dataset.