tiled.adapters.hdf5.HDF5Adapter

class tiled.adapters.hdf5.HDF5Adapter(node, access_policy=None, principal=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"])
__init__(node, access_policy=None, principal=None)[source]

Methods

__init__(node[, access_policy, principal])

authenticated_as(principal)

from_file(file[, swmr, libver])

get(k[,d])

items()

keys()

read([fields])

search(query)

Return a Tree with a subset of the mapping.

values()

Attributes

access_policy

items_indexer

keys_indexer

metadata

principal

structure_family

values_indexer