peal.adaptors.adaptor_factory

Factory that resolves an adaptor specification into an Adaptor instance.

Adaptors are the repair methods of PEAL (CFKD, DiDAE, ClArC, GroupDRO, …). get_adaptor accepts an already-built adaptor, a path to a yaml config or a plain config dict, discovers every Adaptor subclass under peal/adaptors and instantiates the one named by the adaptor_type config key.

Functions

get_adaptor

Return an Adaptor built from an instance, a yaml path or a config dict.