orangecontrib.tomwer.widgets.reconstruction.ComputeReduceDarkAndFlatOW.ComputeReduceDarkAndFlatOW#

class orangecontrib.tomwer.widgets.reconstruction.ComputeReduceDarkAndFlatOW.ComputeReduceDarkAndFlatOW(*args, captionTitle=None, **kwargs)#

Widget to compute the reduced darks and flats of scans

class Inputs#
data = Input(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='_dataReceived', ...)#
class Outputs#
data = Output(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, ...)#
reduced_darks = Output(name='reduced_darks', type=(<class 'tomwer.model.reconstruction.reduced_frames.ReducedFrames'>,), ...)#
reduced_flats = Output(name='reduced_flats', type=(<class 'tomwer.model.reconstruction.reduced_frames.ReducedFrames'>,), ...)#
default_inputs = Setting "None"#
description = 'This widget will compute reduced darks and flats to scans'#

Short widget description, displayed in canvas help tooltips.

ewokstaskclass#

alias of ReduceDarkFlatTask

handleNewSignals()#

in order to handle https://gitlab.esrf.fr/workflow/ewoks/ewoksorange/-/issues/60 we need to overwrite the Inputs.data and overwrite the ‘handleNewSignals’ function.

The Inputs.data is used to make sure the task is executed each time the value of a link is changed. The overwrite of handleNewSignals is to make sure we won’t trigger one extra time the widget.

Return type:

None

icon = 'icons/compute_darkflat.svg'#

Widget icon path, relative to the defining module.

id = 'orange.widgets.tomwer.ComputeReduceDarkAndFlatOW'#
keywords = ['tomography', 'dark', 'darks', 'ref', 'refs', 'flat', 'flats']#

Widget keywords, used for finding it in the quick menu.

name = 'reduced darks and flats'#

Widget name, as presented in the Canvas.

priority = 15#

Widget priority, used for sorting within a category.

settingsHandler = <orangewidget.settings.SettingsHandler object>#

Settings handler, can be overridden for context handling.