MAT-file backend

class dsch.backends.mat.Array(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Array

Array-type data node for the mat backend.

class dsch.backends.mat.Bool(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Bool

Bool-type data node for the mat backend.

class dsch.backends.mat.Bytes(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Bytes

Bytes-type data node for the mat backend.

class dsch.backends.mat.Compilation(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Compilation

Compilation-type data node for the mat backend.

class dsch.backends.mat.Date(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Date

Date-type data node for the mat backend.

class dsch.backends.mat.DateTime(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.DateTime

DateTime-type data node for the mat backend.

class dsch.backends.mat.List(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.List

List-type data node for the mat backend.

save()

Export the node data as a data storage object.

For the mat backend, List data is represented as a NumPy object array, i.e. a numpy.ndarray with dtype=numpy.object.

Returns:Data storage object with the node’s data.
Return type:dict
class dsch.backends.mat.Scalar(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Scalar

Scalar-type data node for the mat backend.

class dsch.backends.mat.Storage(storage_path, schema_node=None)

Bases: dsch.backends.npz.Storage

Interface to .mat files.

Provides access to an .mat file via dsch, i.e. reading from and writing to such a file.

Variables:
  • storage_path (str) – Path to the current storage.
  • schema_node – Top-level schema node used for the stored data.
  • data – Top-level data node, providing access to all managed data.
class dsch.backends.mat.String(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.String

String-type data node for the mat backend.

class dsch.backends.mat.Time(schema_node, parent, data_storage=None, new_params=None)

Bases: dsch.backends.npz.Time

Time-type data node for the mat backend.