mantidimaging.gui.windows.spectrum_viewer.view module

class mantidimaging.gui.windows.spectrum_viewer.view.SpectrumViewerWindowView(main_window: MainWindowView)[source]

Bases: BaseMainWindowView

add_roi_table_row(row: int, name: str, colour: str)[source]

Add a new row to the ROI table

@param row: The row number @param name: The name of the ROI @param colour: The colour of the ROI

auto_range_image()[source]
cleanup()[source]

Runs when the window is closed.

clear() None[source]
clear_all_rois() None[source]

Clear all ROIs from the table view

property current_dataset_id: 'UUID' | None
display_normalise_error()[source]
exportButton: QPushButton
get_csv_filename() Path | None[source]
get_normalise_stack() 'UUID' | None[source]
imageLayout: QVBoxLayout
normaliseCheckBox: QCheckBox
normaliseErrorIcon: QLabel
normaliseStackSelector: DatasetSelectorWidgetView
normalise_error_issue: str = ''
remove_roi() None[source]

Clear the selected ROI in the table view

property roi_table_model
sampleStackSelector: DatasetSelectorWidgetView
set_export_button_enabled(enabled: bool)[source]

Toggle enabled state of the export button

@param enabled: True to enable the button, False to disable it

set_image(image_data: 'np.ndarray' | None, autoLevels: bool = True)[source]
set_new_roi() None[source]

Set a new ROI on the image

set_normalise_dropdown_state() None[source]
set_normalise_error(norm_issue: str)[source]
set_spectrum(name: str, spectrum_data: np.ndarray)[source]
tableView: RemovableRowTableView
try_to_select_relevant_normalise_stack(name: str) None[source]