parameterize_tree#

lsst.images.serialization.parameterize_tree(tree_cls, pointer_type)#

Parameterise tree_cls over pointer_type if it is generic.

Some ArchiveTree subclasses (e.g. SumFieldSerializationModel) take no type parameters; their _get_archive_tree_type returns the class itself. Match that behaviour here so per-backend open_tree implementations can call this uniformly.

Parameters:
  • tree_cls (type[ArchiveTree]) – Archive tree class to parameterise.

  • pointer_type (type[Any]) – Pointer type to parameterise tree_cls over when it is generic.

Return type:

type[ArchiveTree]

This page was last modified on .