models#

Contains the various models used in the Qt model-view methodology.

Functions

get_dims_from_str(dims_as_str)

Take a tuple of strings describing the desired dimensions input by the user into the hdf5widget.dims_view and turn it into a tuple of ints and/or slices, which can be used to index the dataset at the node.

Classes

AttributesTableModel(hdf)

Model containing any attributes of a dataset in the HDF5 file.

DataTableModel(hdf)

Model containing the data in the dataset in the HDF5 file.

DatasetTableModel(hdf)

Model containing various descriptors of the dataset in the HDF5 file, currently these are: 'name', 'dtype', 'ndim', 'shape', 'maxshape', 'chunks', 'compression', 'shuffle', 'fletcher32' and 'scaleoffset'.

DimsTableModel(hdf)

Model containing the current dimensions of the dataset.

ImageModel(hdf)

Model containing data from the dataset in the HDF5 file, in a form suitable for plotting as an image.

PlotModel(hdf)

Model containing data from a dataset of the HDF5 file, in a form suitable for plotting as y(x), where x is usually an index.

TreeModel(hdf)

Tree model showing the structure of the HDF5 file.