mantidimaging.gui.widgets.bad_data_overlay.bad_data_overlay module#

class mantidimaging.gui.widgets.bad_data_overlay.bad_data_overlay.BadDataCheck(check_function, indicator, overlay, color)[source]#

Bases: object

check_function: Callable[[ndarray], ndarray]#
clear() None[source]#
do_check(data) None[source]#
indicator: IndicatorIconView#
remove() None[source]#
setup_overlay() None[source]#
class mantidimaging.gui.widgets.bad_data_overlay.bad_data_overlay.BadDataOverlay[source]#

Bases: ABC

Mixin class to be used with MIImageView and MIMiniImageView

check_for_bad_data() None[source]#
clear_overlays() None[source]#
disable_check(name: str) None[source]#
enable_check(name: str, color: list[int], pos: int, func: Callable, message: str, actions: list[tuple[str, Callable]] | None) None[source]#
enable_message(enable: bool = True) None[source]#
enable_nan_check(enable: bool = True, actions: list[tuple[str, Callable]] | None = None) None[source]#
enable_value_check(enable: bool = True, actions: list[tuple[str, Callable]] | None = None) None[source]#

Enable or disable all values checks (zero, negative, NaN)

abstract property image_item: ImageItem#
show_message(message: str | None) None[source]#
abstract property viewbox: ViewBox#
class mantidimaging.gui.widgets.bad_data_overlay.bad_data_overlay.CheckConfig(name: 'str', color: 'list[int]', position: 'int', check_function: 'Callable[[np.ndarray], np.ndarray]', message: 'str')[source]#

Bases: object

check_function: Callable[[ndarray], ndarray]#
color: list[int]#
message: str#
name: str#
position: int#