dedalus.core.future

Classes for future evaluation.

Module Contents

logger
STORE_OUTPUTS
STORE_LAST_DEFAULT
class Future(*args, out=None)

Base class for deferred operations on data.

Parameters:
  • *args (Operands) – Operands. Number must match class attribute arity, if present.

  • out (data, optional) – Output data object. If not specified, a new object will be used.

Notes

Operators are stacked (i.e. provided as arguments to other operators) to construct trees that represent compound expressions. Nodes are evaluated by first recursively evaluating their subtrees, and then calling the operate method.

store_last
abstract bases()
reset()

Restore original arguments.

atoms(*types)

Gather all leaf-operands of specified types.

has(*vars)

Determine if tree contains any specified operands/operators.

replace(old, new)

Replace specified operand/operator.

prep_nccs(vars)
gather_ncc_coeffs()
evaluate(id=None, force=True)

Recursively evaluate operation.

get_out()
build_out()
attempt(id=None)

Recursively attempt to evaluate operation.

abstract check_conditions()

Check that arguments are in a proper layout.

abstract enforce_conditions()

Require arguments to be in a proper layout.

abstract operate(out)

Perform operation.

class FutureField(*args, out=None)

Class for deferred operations producing a Field.

future_type
static parse(string, namespace, dist)

Build FutureField from a string expression.

static cast(arg, dist)

Cast an object to a FutureField.

class FutureLockedField(*args, out=None)

Class for deferred operations producing an Array.

future_type