7.2.8.17.1. __init__¶
- MapDispatch.__init__(dsp, defaults=None, recursive_inputs=None, constructor=<class 'schedula.utils.dsp.SubDispatch'>, constructor_kwargs=None, function_id=None, func_kw=<function MapDispatch.<lambda>>, input_label='inputs<{}>', output_label='outputs<{}>', data_label='data<{}>', cluster_label='task<{}>', **kwargs)[source]
Initializes the MapDispatch function.
- Parameters:
dsp (schedula.Dispatcher | schedula.utils.blue.BlueDispatcher) – A dispatcher that identifies the base model.
defaults (dict) – Defaults values that are recursively merged with the input provided to the dispatching function.
recursive_inputs (list | dict) – List of data node ids that are extracted from the outputs of the dispatching function and then merged with the inputs of the its successive evaluation. If a dictionary is given, this is used to rename the data node ids extracted.
constructor (function | class) – It initializes the dispatching function.
constructor_kwargs (function | class) – Extra keywords passed to the constructor function.
function_id (str, optional) – Function name.
func_kw (function, optional) – Extra keywords to add the dispatching function to execution model.
input_label (str, optional) – Custom label formatter for recursive inputs.
output_label (str, optional) – Custom label formatter for recursive outputs.
data_label (str, optional) – Custom label formatter for recursive internal data.
kwargs (object) – Keywords to initialize the execution model.