pymovements.utils.checks.check_shapes_positions_velocities#

pymovements.utils.checks.check_shapes_positions_velocities(positions: ndarray, velocities: ndarray) None[source]#

Checks if positions and velocities are of shape (N, 2) and shape is equal for both.

Parameters:
  • positions (np.ndarray) – The positions array.

  • velocities (np.ndarray) – The velocities array.

Raises:

ValueError – If positions or velocities are not of shape (N, 2) or the shape is not equal for both.