orangecontrib.tomwer.widgets.reconstruction.NabuOW.NabuOW#

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

A simple widget managing the copy of an incoming folder to an other one

Parameters:

parent – the parent widget

class DialogCM(dialogButtonsBox)#

Simple context manager to hide / show button dialogs

class Inputs#
cluster_config = Input(name='cluster_config', type=<class 'tomwer.core.cluster.cluster.SlurmClusterConfiguration'>, handler='setCluster', ...)#
data = Input(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='process', ...)#
nabu_params = Input(name='nabu_params', type=<class 'dict'>, handler='_setNabuParams', ...)#
class Outputs#
data = Output(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, ...)#
future_out = Output(name='future_tomo_obj', type=<class 'tomwer.core.futureobject.FutureTomwerObject'>, ...)#
slice_urls = Output(name='slice urls', type=<class 'tuple'>, ...)#
cancel(scan)#

cancel (abort) processing of given dataset. If dataset is empty then conside this is the current processing that must be cancelled

description = 'This widget will call nabu for running a reconstruction '#

Short widget description, displayed in canvas help tooltips.

ewokstaskclass#

alias of NabuSlicesTask

getConfiguration(allow_no_nabu_config_defined=False)#
Parameters:

allow_no_nabu_config_defined (bool) – when we save the settings we don’t want to raise an error when saving the configuration.

But when getting it for reconstructing we want to

icon = 'icons/nabu_slices.svg'#

Widget icon path, relative to the defining module.

id = 'orange.widgets.tomwer.reconstruction.NabuOW.NabuOW'#
keyPressEvent(event)#

The event has to be filtered since we have some children that can be edited using the ‘enter’ key as defining the cor manually (see #481)). As we are in a dialog this automatically trigger ‘accepted’. See https://forum.qt.io/topic/5080/preventing-enter-key-from-triggering-ok-in-qbuttonbox-in-particular-qlineedit-qbuttonbox/5

keywords = ['tomography', 'nabu', 'reconstruction', 'FBP', 'filter']#

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

name = 'nabu slice reconstruction'#

Widget name, as presented in the Canvas.

priority = 12#

Widget priority, used for sorting within a category.

process(value, id=None)#
reprocess(scan)#

Recompute nabu with different parameters

resizing_enabled = True#

Should the widget’s window be resizeable? (if not, the widget will derive a fixed size constraint from its layout)

setCluster(value)#
setConfiguration(config)#
setDryRun(dry_run)#
settingsHandler = <orangewidget.settings.SettingsHandler object>#

Settings handler, can be overridden for context handling.

sigScanReady#

Signal emitted when a scan is ended

want_main_area = True#

Should the widget construct a mainArea? (a resizable area to the right of the controlArea)