helper module

Provide evaluator helpers.

need_to_resample(value, ref_value)[source]

Determine if we need to resample value or ref_value.

Parameters:
Return type:

bool

return_value_should_be_plotted(partial_function)[source]

Determine if keyword ‘to_plot’ was passed and is True.

This function only works on functions defined by functools.partial. If it is not (lambda function, “classic” function), we consider that the plotting was not desired. We check if the ‘to_plot’ keyword was given in the partial definition, and if it is not we also consider that the plot was not wanted.

Parameters:

partial_function (Callable)

Return type:

bool

limits_given_in_functoolspartial_args(partial_function)[source]

Extract the limits given to a test function.

Parameters:

partial_function (Callable)

Return type:

Sequence[ndarray | float]