tree_class_for_info#
- lsst.images.serialization.tree_class_for_info(info, path)#
Return the registered
ArchiveTreesubclass forinfo’s schema.- Parameters:
info (
ArchiveInfo) – Basic archive info whoseschema_nameselects the tree class.path (
Union[str,ParseResult,ResourcePath,Path,IO[bytes]]) – Path or stream being opened, used only for the error message.
- Raises:
ArchiveReadError – If no class is registered for the schema.
- Return type: