DataUtils.AnomalyHandlers#

DataUtils.AnomalyHandlers.py

bubble_check_impl(y, debug=False)#

Check for bubbles in the intensity array.

Parameters:
  • y (np.ndarray) – The intensity array to be checked for bubbles.

  • debug (bool) – If True, debug information will be printed.

Returns:

bubbles – The indices of the detected bubbles.

Return type:

np.ndarray

remove_bubbles_impl(intensity_array, to_be_excluded, excluded_set, debug=False)#

Exclude bubbles from the intensity array.

Parameters:
  • intensity_array (np.ndarray) – The intensity array to be modified.

  • to_be_excluded (np.ndarray) – The indices of the bubbles to be excluded.

  • excluded_set (set) – The set of excluded indices.

  • debug (bool) – If True, debug information will be printed.

Returns:

excluded_set – The set of excluded indices.

Return type:

set

exclude_bubble_impl(intensity_array, from_, to_, excluded_set)#

Exclude a bubble from the intensity array.