element_51.engine

Run a graph: call each node’s function in dependency order.

Functions

ancestors(graph, node)

Return the nodes node needs, directly or not.

closure(graph, nodes)

Return nodes and everything they need.

collect_outputs(function, result)

Check what a node returned and turn it into a value per output port.

descendants(graph, node)

Return the nodes that need node, directly or not.

describe_error(error)

Return an error as one line.

resolve_inputs(node, incoming, function, ...)

Find the value of each of a node's inputs.

run_graph(graph, functions, *, raise_errors)

Run every node once, upstream nodes first.

Classes

NodeOutcome(*, node, status[, outputs, ...])

What happened to one node in a run.

RunResult(*[, op, partial])

The outcome of every node, in the order they ran.

Exceptions

BadReturnError

A node function returned a value its output port cannot carry.

MissingInputError

An input has neither a link nor a default.