ewokstomo.tasks.reconstruct_slice.ReconstructSlice#

class ewokstomo.tasks.reconstruct_slice.ReconstructSlice(inputs=None, varinfo=None, node_id=None, node_attrs=None, execinfo=None, profile_directory=None)[source]#

Bases: Task

Parameters:
run()[source]#

Task that reconstructs a single slice from full-field tomography data using Nabu:

  • Accepts a configuration dictionary for Nabu and a slice index.

  • Generates a Nabu configuration file with adjusted start and end z indices to reconstruct only one slice.

  • Runs Nabu to perform the reconstruction.

  • Saves the resulting slice to disk in a subfolder named “slices” located at the scan root (sibling of the projections directory).

  • Outputs both the path to the saved reconstructed slice and the in-memory numpy array of the slice.