httomo.method_wrappers.average_frames.AverageFramesWrapper#
- class httomo.method_wrappers.average_frames.AverageFramesWrapper(method_repository: MethodRepository, module_path: str, method_name: str, comm: mpi4py.MPI.Comm, save_result: bool | None = None, output_mapping: Dict[str, str] = {}, **kwargs)[source]#
Wrapper for frames/projection averaging.
Methods
should_select_this_class(module_path, ...)Method to dermine if this class should be used for wrapper instantiation, given the module path and method name.
Attributes
task_idpattern- classmethod should_select_this_class(module_path: str, method_name: str) bool[source]#
Method to dermine if this class should be used for wrapper instantiation, given the module path and method name.
The make_method_wrapper function will iterate through all subclasses and evaluate this condition in the order of declaration, falling back to GenericMethodWrapper if all evaluate to False.
Therefore, deriving classes should override this method to indicate the criteria when they should be instantiated.