orangecontrib.tomwer.widgets.other.PythonScriptOW.OWPythonScript#

class orangecontrib.tomwer.widgets.other.PythonScriptOW.OWPythonScript(*args, captionTitle=None, **kwargs)#
class Error(widget)#
class Inputs#
cluster_config = Input(name='cluster_config', type=<class 'tomwer.core.cluster.cluster.SlurmClusterConfiguration'>, handler='set_cluster_config', ...)#
configuration = Input(name='configuration', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='set_configuration', ...)#
data = Input(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, handler='set_data', ...)#
future_tomo_obj = Input(name='future_tomo_obj', type=<class 'tomwer.core.futureobject.FutureTomwerObject'>, handler='set_future_tomo_object', ...)#
object = Input(name='Object', type=<class 'object'>, handler='set_object', ...)#
series = Input(name='series', type=<class 'tomoscan.series.Series'>, handler='set_series', ...)#
tomo_obj = Input(name='tomo_obj', type=<class 'tomwer.core.tomwer_object.TomwerObject'>, handler='set_tomo_obj', ...)#
tomo_objs = Input(name='tomo_objs', type=<class 'tomwer.core.tomwer_object.TomwerObject'>, handler='set_tomo_objs', ...)#
volume = Input(name='volume', type=<class 'tomwer.core.volume.volumebase.TomwerVolumeBase'>, handler='set_volume', ...)#
class Outputs#
cluster_config = Output(name='cluster_config', type=<class 'tomwer.core.cluster.cluster.SlurmClusterConfiguration'>, ...)#
configuration = Output(name='configuration', type=<class 'dict'>, ...)#
data = Output(name='data', type=<class 'tomwer.core.scan.scanbase.TomwerScanBase'>, ...)#
future_tomo_obj = Output(name='future_tomo_obj', type=<class 'tomwer.core.futureobject.FutureTomwerObject'>, ...)#
object = Output(name='Object', type=<class 'object'>, ...)#
series = Output(name='series', type=<class 'dict'>, ...)#
tomo_obj = Output(name='tomo_obj', type=<class 'tomwer.core.tomwer_object.TomwerObject'>, ...)#
tomo_objs = Output(name='tomo_objs', type=<class 'tuple'>, ...)#
volume = Output(name='volume', type=<class 'tomwer.core.volume.volumebase.TomwerVolumeBase'>, ...)#
commit()#
commitChangesToLibrary(*args)#
currentScriptIndex = Setting "None"#
description: str = 'Write a Python script and run it on input data or models.'#

Short widget description, displayed in canvas help tooltips.

documentForScript(script=0)#
ewokstaskclass#

alias of PythonScript

handleNewSignals()#

Invoked by the workflow signal propagation manager after all signals handlers have been called.

Reimplement this method in order to coalesce updates from multiple updated inputs.

handle_input(obj, id, signal)#
icon: str = 'icons/PythonScript.svg'#

Widget icon path, relative to the defining module.

initial_locals_state()#
keywords: Union[str, List[str]] = ['file', 'program']#

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

libraryListSource = Setting "None"#
name: str = 'Python Script'#

Widget name, as presented in the Canvas.

onAddScript(*args)#
onAddScriptFromFile(*args)#
onModificationChanged(modified)#
onRemoveScript(*args)#
onSaveScriptToFile(*args)#
onSelectedScriptChanged(selected, deselected)#
onSpliterMoved(pos, ind)#
priority: int = 3150#

Widget priority, used for sorting within a category.

restoreSaved()#
restoreScriptText()#
saveScript()#
saveScriptText()#
scriptText = Setting "None"#
selectedScriptIndex()#
setSelectedScript(index)#
set_cluster_config(value, id=None)#
set_configuration(value, id=None)#
set_data(value, id=None)#
set_future_tomo_object(value, id=None)#
set_object(data, id)#
set_series(value, id=None)#
set_tomo_obj(value, id=None)#
set_tomo_objs(value, id=None)#
set_volume(value, id=None)#
settingsHandler: SettingsHandler = <orangecontrib.tomwer.widgets.other.PythonScriptOW.PrepareSavingSettingsHandler object>#

Settings handler, can be overridden for context handling.

signal_names = ('data', 'volume', 'future_tomo_obj', 'object', 'configuration', 'cluster_config', 'series', 'tomo_obj', 'tomo_objs')#
splitterState = Setting "None"#
storeSpecificSettings()#

Store data that is not registered as setting.

This method is called by orangewidget.settings.ContextHandler.settings_from_widget. Widgets may define it to store any data that is not stored in widget attributes. See Orange.widgets.data.owcolor.OWColor for an example.