dedalus.core.future

Classes for future evaluation.

Module Contents

logger
PREALLOCATE_OUTPUTS
class Future(*args, domain=None, out=None)

Bases:dedalus.core.field.Operand

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.

arity
store_last = False
reset(self)

Restore original arguments.

atoms(self, *types, include_out=False)
has(self, *atoms)
replace(self, old, new)

Replace an object in the expression tree.

evaluate(self, id=None, force=True)

Recursively evaluate operation.

attempt(self, id=None)

Recursively attempt to evaluate operation.

meta(self)
meta_scale(self, axis)
meta_dirichlet(self, axis)
check_conditions(self)

Check that all argument fields are in proper layouts.

operate(self, out)

Perform operation.

as_ncc_operator(self, cacheid=None, **kw)
class FutureScalar

Bases:dedalus.core.future.Future

Class for deferred operations producing a Scalar.

future_type
meta
class FutureArray

Bases:dedalus.core.future.Future

Class for deferred operations producing an Array.

future_type
class FutureField

Bases:dedalus.core.future.Future

Class for deferred operations producing a Field.

future_type
static parse(string, namespace, domain)

Build FutureField from a string expression.

static cast(input, domain)

Cast an object to a FutureField.

unique_domain(*args)

Return unique domain from a set of fields.