modeci_mdf.mdf.ParameterCondition

class modeci_mdf.mdf.ParameterCondition(id: str, test: EvaluableExpression | List | Dict | ndarray | int | float | str | None = None, value: EvaluableExpression | List | Dict | ndarray | int | float | str | None = None)[source]

Bases: Base

A condition to test on a Node’s parameters, which if true, sets the value of this Parameter

Variables:
  • id (str) – A unique identifier for the ParameterCondition

  • test (modelspec.base_types.EvaluableExpression | List | Dict | numpy.ndarray | int | float | str | None) – The boolean expression to evaluate

  • value (modelspec.base_types.EvaluableExpression | List | Dict | numpy.ndarray | int | float | str | None) – The new value of the Parameter if the test is true

Method generated by attrs for class ParameterCondition.

Methods