phileas.iteration.node#

This module defines abstract and concrete iteration tree nodes, which are iteration methods and transform nodes, as well as their iterators.

Classes

Accumulator(child[, recursive, start_value])

Transform node that accumulates its inputs, as a kind of unlazifying transform:

AccumulatorIterator(tree)

CartesianProduct(children[, order, lazy, snake])

Iteration over the cartesian product of the children.

CartesianProductIterator(product)

Configurations(children[, order, lazy, ...])

Represents a set of named configurations that can be invoked using IterationTree.get_configuration().

First(child, size)

Return only the first elements of its child.

FirstIterator(tree)

FunctionalTranform(child, f)

Transform node using its function attribute to modify its child.

IterationMethod(children[, order, lazy])

Iteration node having multiple children, supplied either as a list or dictionary.

IterationMethodIterator(tree)

Base class used to implement concrete IterationMethod nodes iterators, and providing helper attributes to do so.

Lazify(child)

Transform node that only returns the elements that were updated in its children values (for dictionary values), or leaves its inputs untouched (for other types).

LazifyIterator(tree)

MoveUpTransform(child[, insert_name])

Pick(children[, order, lazy, seed, ...])

Randomly pick and return one child at a time.

PickIterator(tree)

Shuffle(child[, seed])

Unary node that shuffles the order of its child.

ShuffleIterator(tree)

Transform(child)

Node that modifies the data trees generated by its child during iteration.

TransformIterator(tree)

UnaryNode(child)

Union(children[, order, lazy, preset, ...])

Iteration over one child at a time, starting with the first one (or the first one of the order, if specified).

UnionIterator(tree)

Zip(children[, order, lazy, stops_at, ...])

Iteration over all of the children of the nodes at the same time, in a way similar to zip().

ZipIterator(tree)