mkt.databases.conservation.load_conservation_renderer

mkt.databases.conservation.load_conservation_renderer(cls, **kwargs)[source]

Build a conservation renderer from the shipped KLIFSConservationData.

Deserializes the packaged artifact (via mkt.schema.io_utils.load_conservation_data()) and injects its distances + linkage into cls through KLIFSHierarchicalConservation.from_conservation_data(), so no clustering is recomputed. If the artifact is not found, falls back to building cls from the live KLIFS panel with a warning (run generate_conservation_data to persist it).

Parameters:
  • cls (type[KLIFSHierarchicalConservation]) – The renderer (sub)class to instantiate.

  • **kwargs – Renderer-specific keyword arguments forwarded to the constructor.

Returns:

An instance of cls.

Return type:

KLIFSHierarchicalConservation