check_algorithm_cls¶
-
menpofit.checks.
check_algorithm_cls
(algorithm_cls, n_scales, base_algorithm_cls)[source]¶ Function that checks whether the list of class objects defined per scale are subclasses of the provided base class.
Parameters: - algorithm_cls (class or list of class) – The list of objects per scale.
- n_scales (int) – The number of scales.
- base_algorithm_cls (class) – The required base class.
Raises: ValueError
– algorithm_cls must be a subclass of {base_algorithm_cls} or a list/tuple of {base_algorithm_cls} subclasses with the same length as the number of scales {n_scales}