tiled.adapters.hdf5.HDF5Adapter¶
- class tiled.adapters.hdf5.HDF5Adapter(node, *, structure=None, metadata=None, specs=None, access_policy=None)[source]¶
Read an HDF5 file or a group within one.
This map the structure of an HDF5 file onto a “Tree” of array structures.
Examples
From the root node of a file given a filepath
>>> import h5py >>> HDF5Adapter.from_file("path/to/file.h5")
From the root node of a file given an h5py.File object
>>> import h5py >>> file = h5py.File("path/to/file.h5") >>> HDF5Adapter.from_file(file)
From a group within a file
>>> import h5py >>> file = h5py.File("path/to/file.h5") >>> HDF5Adapter(file["some_group']["some_sub_group"])
Methods
__init__
(node, *[, structure, metadata, ...])from_file
(file, *[, structure, metadata, ...])get
(k[,d])inlined_contents_enabled
(depth)items
()keys
()metadata
()read
([fields])search
(query)Return a Tree with a subset of the mapping.
structure
()values
()Attributes
access_policy
items_indexer
keys_indexer
structure_family
values_indexer