demcompare.coregistration.coregistration

This module contains the Coregistration class factory. This main API Coregistration class generates an object linked with coregistration configuration “method_name” (from registered CoregistrationTemplate class)

Module Contents

Classes

Coregistration

Coregistration factory:

class demcompare.coregistration.coregistration.Coregistration[source]

Coregistration factory: A class designed for registered all available coregistration methods and instantiate them when needed.

available_coregistrations: Dict[str, Any][source]
default_application = 'nuth_kaab_internal'[source]
classmethod create_coreg(cfg: demcompare.internal_typing.ConfigType = None)[source]

Factory command to create the coregistration from method_name Return a CoregistrationTemplate child instance associated with the “method_name” given in the configuration

Parameters:

cfg (ConfigType) – configuration {‘method_name’: value}

classmethod print_coregistration_methods()[source]

Print all registered applications

classmethod register(coreg_method_name: str)[source]

Allows to register the CoregistrationTemplate subclass in the factory with its coregistration method_name through decorator

Parameters:

coreg_method_name (string) – the subclass name to be registered