8.2.8.18.1. __init__

SubDispatch.__init__(dsp, outputs=None, cutoff=None, inputs_dist=None, wildcard=False, no_call=False, shrink=False, rm_unused_nds=False, output_type='all')[source]

Initializes the Sub-dispatch.

Parameters:
  • dsp (schedula.Dispatcher) – A dispatcher that identifies the model adopted.
  • outputs (list[str], iterable) – Ending data nodes.
  • cutoff (float, int, optional) – Depth to stop the search.
  • inputs_dist (dict[str, int | float], optional) – Initial distances of input data nodes.
  • wildcard (bool, optional) – If True, when the data node is used as input and target in the ArciDispatch algorithm, the input value will be used as input for the connected functions, but not as output.
  • no_call (bool, optional) – If True data node estimation function is not used.
  • shrink (bool, optional) – If True the dispatcher is shrink before the dispatch.
  • rm_unused_nds (bool, optional) – If True unused function and sub-dispatcher nodes are removed from workflow.
  • output_type (str, optional) –

    Type of function output:

    • ’all’: a dictionary with all dispatch outputs.
    • ’list’: a list with all outputs listed in outputs.
    • ’dict’: a dictionary with any outputs listed in outputs.