h5.formats.get_format_info

h5.formats.get_format_info(hdf5_format)[source]

Look up the FormatInfo registered for hdf5_format.

If an exact match is found in the registry it is returned directly. Otherwise the backward-compatibility patterns registered via register_backward_compatibility_method() are tried in order; the first regex match yields a copy of the target class’s FormatInfo with its backward_compat field filled in.

Parameters:
hdf5_formatstr

The HDF5 format string to look up.

Returns:
FormatInfo

The format info for an exact match, or a copy augmented with backward-compatibility information for a regex match.

Raises:
KeyError

If no exact or compatible match is found, or if more than one compatibility pattern matches.