parameterize_tree#
- lsst.images.serialization.parameterize_tree(tree_cls, pointer_type)#
Parameterise
tree_clsoverpointer_typeif it is generic.Some
ArchiveTreesubclasses (e.g.SumFieldSerializationModel) take no type parameters; their_get_archive_tree_typereturns the class itself. Match that behaviour here so per-backendopen_treeimplementations can call this uniformly.- Parameters:
tree_cls (
type[ArchiveTree]) – Archive tree class to parameterise.pointer_type (
type[Any]) – Pointer type to parameterisetree_clsover when it is generic.
- Return type: