orangecontrib.tomwer.widgets.reconstruction.CastNabuVolumeOW.CastNabuVolumeOW#

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

widget used to cast from one file format and data format to another. Like from float 32 bits - HDF5 to unisgned int 16 bits - tiff.

It calls the CastVolumeTask that triggers behind nabu-cast.

Parameters:

parent – the parent widget

class Inputs#
cluster_config = Input(name='cluster_config', type=<class 'tomwer.core.cluster.cluster.SlurmClusterConfiguration'>, handler='setClusterConfig', ...)#
data = Input(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='process_data', ...)#
volume = Input(name='volume', type=<class 'tomwer.core.volume.volumebase.TomwerVolumeBase'>, handler='process_volume', ...)#
class Outputs#
cast_volume = Output(name='cast_volume', type=<class 'tomwer.core.volume.volumebase.TomwerVolumeBase'>, ...)#
data_portal_processed_datasets = Output(name='data_portal_processed_datasets', type=<class 'tuple'>, ...)#
future_tomo_obj = Output(name='future_tomo_obj', type=(<class 'tomwer.core.futureobject.FutureTomwerObject'>,), ...)#
volume = Output(name='volume', type=<class 'tomwer.core.volume.volumebase.TomwerVolumeBase'>, ...)#
default_inputs = Setting "None"#
description = 'This widget will allow to cast a nabu volume data type / format to another one.'#

Short widget description, displayed in canvas help tooltips.

ewokstaskclass#

alias of CastVolumeTask

getConfiguration()#
Return type:

dict

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/nabu_cast.svg'#

Widget icon path, relative to the defining module.

id = 'orange.widgets.tomwer.reconstruction.CastNabuVolumeOW.CastNabuVolumeOW'#
keywords = ['tomography', 'nabu', 'reconstruction', 'volume', 'cast', '32 bits', '16 bits', 'tif', 'tiff', 'jp2k']#

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

name = 'cast volume'#

Widget name, as presented in the Canvas.

priority = 60#

Widget priority, used for sorting within a category.

process_data(value, id=None)#
process_volume(value, id=None)#
reprocess(dataset)#

Reprocess a dataset.

Parameters:

dataset (Dataset) – dataset to reprocess

setClusterConfig(value)#
setConfiguration(configuration)#
Return type:

None

settingsHandler = <orangewidget.settings.SettingsHandler object>#

Settings handler, can be overridden for context handling.