httomo.method_wrappers.reconstruction.ReconstructionWrapper

httomo.method_wrappers.reconstruction.ReconstructionWrapper#

class httomo.method_wrappers.reconstruction.ReconstructionWrapper(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]#

Wraps reconstruction functions, limiting the length of the angles array before calling the method.

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

recon_algorithm

Determine the recon algorithm used, if the method is reconstruction.

task_id

pattern

property recon_algorithm: str | None#

Determine the recon algorithm used, if the method is reconstruction. Otherwise return None.

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.