H5Node class

class silx.gui.hdf5.H5Node(h5py_item=None)

Bases: object

Adapter over an h5py object to provide missing informations from h5py nodes, like internal node path and filename (which are not provided by h5py for soft and external links).

It also provides an abstraction to reach node type for mimicked h5py objects.

h5py_object

Returns the internal h5py node.

Return type:h5py.File or h5py.Group or h5py.Dataset
ntype

Returns the node type, as an h5py class.

Return type:h5py.File, h5py.Group or h5py.Dataset
basename

Returns the basename of this h5py node. It is the last identifier of the path.

Return type:str
local_name

Returns the local path of this h5py node.

For links, this path is not equal to the h5py one.

Return type:str
local_file

Returns the local h5py.File object.

For path containing external links, this file is not equal to the h5py one.

Return type:h5py.File
Raises RuntimeException:
 If no file are found
local_filename

Returns the local filename of the h5py node.

For path containing external links, this path is not equal to the filename provided by h5py.

Return type:str
Raises RuntimeException:
 If no file are found
local_basename

Returns the local filename of the h5py node.

For path containing links, this basename can be different than the basename provided by h5py.

Return type:str

Previous topic

Hdf5ContextMenuEvent class

Next topic

NexusSortFilterProxyModel class

This Page