check_step#

data_morph.plotting.animation.check_step(easing_function: Callable[[int | float], int | float]) Callable[[int | float], int | float][source]#

Decorator to check if the step is a float or int and if it is between 0 and 1.

Parameters:

easing_function (Callable) – The easing function to be checked.

Returns:

The easing function with the check for the step.

Return type:

Callable