tomwer.core.process.reconstruction.nabu.nabuslices.run_single_slice_reconstruction#

tomwer.core.process.reconstruction.nabu.nabuslices.run_single_slice_reconstruction(scan, nabu_config, dry_run, slice_index, ask_sinogram_registration, ask_sinogram_load, process_id=None, cluster_config=None, add_to_latest_reconstructions=True, instanciate_class_only=False, axis=NabuPlane.XY)#

# TODO: might need something like a context or an option “keep” slice in memory

Parameters:
  • scan

  • nabu_config – configruation of nabu process

  • cluster_config (Optional[dict]) – configruation of cluster (slurm-cluster only for now)

  • dry_run

  • slice_index (Union[None,int, str]) – slice index to reconstruct. If str should be “middle”

  • local

  • stdout – file to redirect stdout

  • stderr – file to redirect stderr

  • ask_sinogram_registration (bool) – should we ask nabu to register sinogram

  • ask_sinogram_load (bool) – should we ask nabu to load sinogram

  • add_to_latest_reconstructions (bool) – if true add reconstructed slice to the latest reconstruction. We wan’t to avoid this treatment for saaxis and sadeltebeta for example

  • instanciate_class_only (bool) – if we don’t want to run the SingleSliceRunner but only return them. Use case: we want to keep a hand on processing and it can be cancelled

Returns:

result of the slice reconstruction if succeed to launch it.

Return type:

Optional[ResultsRun]