StepRunnable

class sofia_redux.pipeline.gui.widgets.StepRunnable(step_function, nsteps)[source]

Bases: QRunnable

Worker class to run a reduction step.

This class is intended to be the worker for running reductions in a thread separate from the main GUI thread. It uses CustomSignals to emit a ‘progress’ signal after each step and a ‘finished’ signal when all steps are complete.

Attributes:
stepfunction

Reduction step function to run (redux.Interface.step).

nstepsint

Number of steps to run before returning.

signalsCustomSignals

Signals to emit.

stopbool

Flag to stop before processing the next step. May be set by the main GUI to interrupt reduction gracefully.

Initialize the runner.

Parameters:
step_functionfunction

Reduction step function to run (redux.Interface.step).

nstepsint

Number of steps to run.

Methods Summary

run()

Run the reduction steps.

Methods Documentation

run()[source]

Run the reduction steps.