testers module

Regroup the functions dedicated to testing data.

They are used by SimulationOutputEvaluator. They all take a value and limits/upper or lower or objective value as arguments, and return a boolean.

value_is_within_limits(treated_value, limits, **kwargs)[source]

Test if the given value is within the given limits.

Parameters:
Return type:

bool

value_is_above(treated_value, lower_limit, **kwargs)[source]

Test if the given value is above a threshold.

Parameters:
Return type:

bool

value_is_below(treated_value, upper_limit, **kwargs)[source]

Test if the given value is below a threshold.

Parameters:
Return type:

bool

value_is(treated_value, objective_value, tol=1e-10, **kwargs)[source]

Test if the value equals objective_value.

Parameters:
Return type:

bool