tree_class_for_info#

lsst.images.serialization.tree_class_for_info(info: ArchiveInfo, path: ResourcePathExpression | IO[bytes]) type[ArchiveTree]#

Return the registered ArchiveTree subclass for info’s schema.

Parameters#

info

Basic archive info whose schema_name selects the tree class.

path

Path or stream being opened, used only for the error message.

Raises#

ArchiveReadError

If no class is registered for the schema.