designspace.PartialEval#

class designspace.PartialEval(param_status: MappingProxyType, evaluable_constraints: tuple[ConstraintEval, ...], pending_constraints: tuple[Constraint, ...], n_remaining: int)#

Bases: object

What Space.evaluate_partial() found: the state of a partial configuration.

param_status#

Per parameter, one of “set”, “active_unset”, “inactive”, or “unknown” when activity cannot be decided yet. Keyed by definition path and, once a lift’s count is known, by instance path as well.

Type:

MappingProxyType[str, str]

evaluable_constraints#

Constraints that could already be decided from what is set.

Type:

tuple[ConstraintEval, …]

pending_constraints#

Constraints still waiting on unset values.

Type:

tuple[Constraint, …]

n_remaining#

How many active parameters are still unset.

Type:

int