ess.reduce.ui.set_parameter_widget_values#
- ess.reduce.ui.set_parameter_widget_values(widget, new_parameter_values)[source]#
Set the values of the input widgets in the target widget.
Nodes that don’t exist in the input widgets will be ignored.
Example
set_parameter_widget_values(widget, { 'WavelengthBins': {'start': 1.0, 'stop': 14.0, 'nbins': 500} })
- Parameters:
widget (
WorkflowWidget
|ParameterBox
) – The widget containing the input widgets.new_parameter_values (
dict
[type
,Any
]) – A dictionary of values/state to set each fields/state or value of input widgets.
- Raises:
TypeError: – If the widget is not a WorkflowWidget or a ParameterBox.
- Return type: