register_schema_class#

lsst.images.serialization.register_schema_class(cls)#

Register cls under cls.SCHEMA_NAME.

Parameters:

cls (type[ArchiveTree]) – The class to register.

Return type:

None

Notes

No-op when the same class is registered again (re-import during tests). Raises RuntimeError when a different class is registered under an existing name.

Intended to be called from ArchiveTree.__pydantic_init_subclass__; not part of the public API.

This page was last modified on .