mantidimaging.gui.windows.image_load_dialog.presenter module

class mantidimaging.gui.windows.image_load_dialog.presenter.LoadPresenter(view: ImageLoadDialog)[source]

Bases: object

do_update_field(field: Field) None[source]

Called when user clicks select button.

Does nothing if the select file dialog is canceled.

do_update_flat_or_dark(field: Field, selected_file: str) None[source]
do_update_sample(selected_file: str) None[source]

Updates the memory usage and the indices in the dialog.

do_update_sample_log(field: Field, file_name: str) None[source]

Update the sample log if a sample is set. Also check log is consistent with sample

do_update_single_file(field: Field, file_name: str) None[source]
ensure_sample_log_consistency(field: Field, file_name: str, image_filenames: list[str]) None[source]
get_parameters() LoadingParameters[source]

Gather information from the dialog into a LoadingParameters

sample_fg: FilenameGroup | None = None
update_field_with_filegroup(file_info: FILE_TYPES, file_group: FilenameGroup)[source]
view: ImageLoadDialog