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, process_id=None, cluster_config=None, add_to_latest_reconstructions=True, instantiate_class_only=False, axis=NabuPlane.XY)#
# TODO: might need something like a context or an option “keep” slice in memory
- Parameters:
scan –
nabu_config – configuration of nabu process
cluster_config (dict | None) – configuration of cluster (slurm-cluster only for now)
dry_run –
slice_index (int | str | None) – slice index to reconstruct. If str should be “middle”
local –
stdout – file to redirect stdout
stderr – file to redirect stderr
add_to_latest_reconstructions – if true add reconstructed slice to the latest reconstruction. We wan’t to avoid this treatment for saaxis and sadeltebeta for example
instantiate_class_only – 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
- Return type:
ResultsRun | None
- Returns:
result of the slice reconstruction if succeed to launch it.