pymovements.checks

This module holds basic checks which will be reused in other modules.

Functions

check_nan_both_channels

Checks if all nans occur at the same time steps for both channels.

check_no_zeros

Check if variable, or if it is iterable, any of its components are zero.

pymovements.checks.check_nan_both_channels(arr: ndarray)[source]

Checks if all nans occur at the same time steps for both channels.

pymovements.checks.check_no_zeros(variable: Any, name: str = 'variable')[source]

Check if variable, or if it is iterable, any of its components are zero.