Bases: PyQt4.QtCore.QAbstractItemModel
Tree model storing a list of h5py.File like objects.
The main column display the h5py.File list and there hierarchy. Other columns display information on node hierarchy.
Role to reach h5py item from an item index
Role to reach h5py object from an item index
Column id containing HDF5 node names
Column id containing HDF5 dataset types
Column id containing HDF5 dataset shapes
Column id containing HDF5 dataset values
Column id containing HDF5 node description/title/message
Column id containing HDF5 node type
List of logical columns available
Property to enable/disable file dropping in the model.
Property to enable/disable drag-and-drop of files to change the ordering in the model.
Returns an object that contains serialized items of data corresponding to the list of indexes specified.
Parameters: | indexes (list(qt.QModelIndex)) – List of indexes |
---|---|
Return type: | qt.QMimeData |
Synchronize a file a given its index.
Basically close it and load it again.
Parameters: | index (qt.QModelIndex) – Index of the item to update |
---|
Synchronize a h5py object in all the tree.
Basically close it and load it again.
Parameters: | h5pyObject (h5py.File) – A h5py.File object. |
---|
Remove an item from the model using its index.
Parameters: | index (qt.QModelIndex) – Index of the item to remove |
---|
Remove an item from the model using the holding h5py object. It can remove more than one item.
Parameters: | h5pyObject (h5py.File) – A h5py.File object. |
---|
Append an HDF5 object from h5py to the tree.
Parameters: | h5pyObject – File handle/descriptor for a h5py.File or any other class of h5py file structure. |
---|
Load a HDF5 file into the data model.
Parameters: | filename – file path. |
---|