ewoksid02.average.get_array_limit#

ewoksid02.average.get_array_limit(unit_range, unit_array)[source]#

Get the array indices corresponding to the unit range.

Inputs:

unit_range (List[float]): The unit range as a list of two values. unit_array (numpy.ndarray): The array of unit values.

Outputs:

Tuple[int, int]: The indices corresponding to the unit range.

Parameters:
  • unit_range (List[float])

  • unit_array (ndarray)

Return type:

Tuple[int, int]