7.2.15.1. Solution¶
- class Solution(*args, **kwargs)[source]¶
Solution class for dispatch result.
Methods
Terminates ArciDispatch algorithm when all targets have been visited.
Stops the search of the investigated node of the ArciDispatch algorithm, until all inputs are satisfied.
clear
copy
form
Creates a dispatcher Form Flask app.
fromkeys
Create a new ordered dictionary with keys from iterable and values set to value.
get
Return the value for key if key is in the dictionary, else default.
get_node
Returns a sub node of a dispatcher.
Returns the sub-dispatcher induced by the workflow from sources.
items
keys
move_to_end
Move an existing element to the end (or beginning if last is false).
plot
Plots the Dispatcher with a graph in the DOT language with Graphviz.
pop
If the key is not found, return the default if given; otherwise, raise a KeyError.
popitem
Remove and return a (key, value) pair from the dictionary.
Set all asynchronous results.
setdefault
Insert key with a value of default if key is not in the dictionary.
update
If E is present and has a .keys() method, then does: for k in E: D[k] = E[k] If E is present and lacks a .keys() method, then does: for k, v in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
values
web
Creates a dispatcher Flask app.
- __init__(dsp=None, inputs=None, outputs=None, wildcard=False, inputs_dist=None, no_call=False, rm_unused_nds=False, wait_in=None, no_domain=False, _empty=False, index=(-1,), full_name=(), verbose=False, excluded_defaults=())[source]¶
Attributes
Returns the full pipe of a dispatch run.
- check_wait_in(wait_in, n_id)[source]¶
Stops the search of the investigated node of the ArciDispatch algorithm, until all inputs are satisfied.
- get_sub_dsp_from_workflow(sources, reverse=False, add_missing=False, check_inputs=True)[source]¶
Returns the sub-dispatcher induced by the workflow from sources.
The induced sub-dispatcher of the dsp contains the reachable nodes and edges evaluated with breadth-first-search on the workflow graph from source nodes.
- Parameters:
sources (list[str], iterable) – Source nodes for the breadth-first-search. A container of nodes which will be iterated through once.
reverse (bool, optional) – If True the workflow graph is assumed as reversed.
add_missing (bool, optional) – If True, missing function’ inputs are added to the sub-dispatcher.
check_inputs (bool, optional) – If True the missing function’ inputs are not checked.
- Returns:
A sub-dispatcher.
- Return type:
- property pipe¶
Returns the full pipe of a dispatch run.