modeci_mdf.mdf.ParameterCondition
- class modeci_mdf.mdf.ParameterCondition(id: str, test: Optional[Union[EvaluableExpression, List, Dict, ndarray, int, float, str]] = None, value: Optional[Union[EvaluableExpression, List, Dict, ndarray, int, float, str]] = 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 (Optional[Union[modelspec.base_types.EvaluableExpression, List, Dict, numpy.ndarray, int, float, str]]) – The boolean expression to evaluate
value (Optional[Union[modelspec.base_types.EvaluableExpression, List, Dict, numpy.ndarray, int, float, str]]) – The new value of the Parameter if the test is true
Method generated by attrs for class ParameterCondition.
Methods