designspace.ValidationResult#

class designspace.ValidationResult(valid: bool, param_errors: tuple[ParamError, ...], constraint_evals: tuple[ConstraintEval, ...])#

Bases: object

What Space.validate() found.

Separates the two things that can be wrong with a configuration: whether each value is legal for its own parameter, and whether the constraints hold across them.

valid#

Whether the configuration is both well-formed and feasible.

Type:

bool

param_errors#

Per-parameter problems. Empty for a well-formed configuration, even one that is infeasible.

Type:

tuple[ParamError, …]

constraint_evals#

Every constraint evaluated, soft ones included.

Type:

tuple[ConstraintEval, …]