mantidimaging.gui.windows.spectrum_viewer.model module

class mantidimaging.gui.windows.spectrum_viewer.model.SpecType(value)[source]

Bases: Enum

An enumeration.

OPEN = 2
SAMPLE = 1
SAMPLE_NORMED = 3
class mantidimaging.gui.windows.spectrum_viewer.model.SpectrumViewerWindowModel(presenter: SpectrumViewerWindowPresenter)[source]

Bases: object

get_averaged_image() ndarray | None[source]
get_image_shape() tuple[int, int][source]
get_roi(roi_name: str)[source]
get_spectrum(roi_name: str, mode: SpecType) ndarray[source]
static get_stack_spectrum(stack: ImageStack, roi: SensibleROI)[source]
normalise_issue() str[source]
presenter: SpectrumViewerWindowPresenter
save_csv(path: Path, normalized: bool) None[source]
set_normalise_stack(normalise_stack: ImageStack | None) None[source]
set_roi(roi_name: str, roi: SensibleROI)[source]
set_stack(stack: ImageStack | None) None[source]
tof_range: tuple[int, int] = (0, 0)