check_ndarray_sum#

pybrops.core.error.error_value_numpy.check_ndarray_sum(v, vname, vsum, vaxis)[source]#

Check if a numpy.ndarray has a specific sum along a specific axis.

Parameters:
  • v (numpy.ndarray) – Input array.

  • vname (str) – Name assigned to input array.

  • vsum (numpy.ndarray) – Expected sum of the array.

  • vaxis (int) – Axis along which to calculate the sum of the input array.

Return type:

None