blissoda.tomo.online_tomo_plotter.OnlineTomoAccumulatedPlotter#

class blissoda.tomo.online_tomo_plotter.OnlineTomoAccumulatedPlotter(history=1, retry_period=3)[source]#

Bases: BasePlotter

Plotter for online tomography reconstruction that accumulates partial slices.

Monitors the output directory for new reconstructed slice files and progressively accumulates them to show the evolving reconstruction.

Parameters:
  • history (int)

  • retry_period (int)

TITLE = 'Accumulated Reconstructed Slice'#
clear()[source]#

Clear the current plot and reset state.

Return type:

None

handle_workflow_result(future, output_path, slice_index='middle', batch_size=100)[source]#

Monitor workflow execution and update plot as new batches are saved.

Parameters:
  • future – The workflow job future

  • output_path (str) – Directory where batch files are being saved

  • slice_index (int | str) – The slice index being reconstructed (for display only)

  • batch_size (int) – Number of projections per batch

Return type:

None

kill_tasks()#

Kill all tasks.

Return type:

int

property number_of_scans#

Maximum number of scans to be plotted

purge_tasks()#

Remove references to tasks that have finished.

Return type:

int

replot(**retry_options)#
Return type:

None

reset_flint()#
Return type:

None

wait_tasks(timeout=10)#

Wait for all plot tasks to be finished.

Parameters:

timeout (int)

Return type:

int