h5pydantic.types

Module Contents

Classes

H5Type

All subclasses must be able to save all their possible values to HDF5 without error.

H5Int64

Signed Integers, using 64 bits.

H5Int32

Signed Integers, using 32 bits.

Functions

_pytype_to_h5type(pytype)

Map from the Python type to the h5py type.

class h5pydantic.types.H5Type

All subclasses must be able to save all their possible values to HDF5 without error.

numpy: Type[H5Type.numpy]
h5pyid: h5py.h5t.TypeIntegerID
class h5pydantic.types.H5Int64

Bases: int, H5Type

Signed Integers, using 64 bits.

Initialize self. See help(type(self)) for accurate signature.

ge
le
h5pyid
numpy
class h5pydantic.types.H5Int32

Bases: int, H5Type

Signed Integers, using 32 bits.

Initialize self. See help(type(self)) for accurate signature.

ge
le
h5pyid
numpy
h5pydantic.types._pytype_to_h5type(pytype)

Map from the Python type to the h5py type.

Parameters:

pytype (Union[Type[enum.Enum], Type[H5Type], Type[str], Type[float]]) –

Return type:

Union[Type[enum.Enum], Type[H5Type], Type[str], Type[float]]