Parameter management
Utility functions to work with Parameter object
- pymodaq_gui.parameter.utils.get_param_from_name(parent, name)[source]
Get Parameter under parent whose name is name
- Parameters:
parent (
Parameter)name (
str)
- Return type:
Parameter
- pymodaq_gui.parameter.utils.get_param_path(param)[source]
Get the parameter path from its highest parent down to the given parameter including its identifier (name)
- pymodaq_gui.parameter.utils.iter_children(param, childlist=[], filter_type=(), filter_name=(), select_filter=False)[source]
Get a list of parameters’ name under a given Parameter (see iter_children_params)
- Returns:
The list of the children name from the given node.
- Return type:
- pymodaq_gui.parameter.utils.iter_children_params(param, childlist=[], output_type=None, filter_type=(), filter_name=(), select_filter=False)[source]
Get a list of parameters under a given Parameter.
- Parameters:
param (
Parameter (pyqtgraph)) – the root node to be coursedchildlist (
list) – the child/output listoutput_type (
str) – the attribute of parameter that will be added to the output listfilter_type (
list) – filter children sharing those typesfilter_name (
list) – filter children sharing those namesselect_filter (
bool) – if True, add filtered parameters to output list. if False (default), add non-filtered parameter to output list.
- Returns:
The list of the children from the given node.
- Return type: