mantidimaging.gui.windows.recon.presenter module#

class mantidimaging.gui.windows.recon.presenter.AutoCorMethod(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

CORRELATION = 1#
MINIMISATION_SQUARE_SUM = 2#
class mantidimaging.gui.windows.recon.presenter.Notifications(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

ADD_COR = 12#
ALGORITHM_CHANGED = 10#
AUTO_FIND_COR_CORRELATE = 15#
AUTO_FIND_COR_MINIMISE = 16#
CALCULATE_CORS_FROM_MANUAL_TILT = 9#
CLEAR_ALL_CORS = 7#
COR_FIT = 6#
RECONSTRUCT_PREVIEW_SLICE = 2#
RECONSTRUCT_PREVIEW_USER_CLICK = 3#
RECONSTRUCT_STACK_SLICE = 4#
RECONSTRUCT_USER_CLICK = 5#
RECONSTRUCT_VOLUME = 1#
REFINE_COR = 13#
REFINE_ITERS = 14#
REMOVE_SELECTED_COR = 8#
UPDATE_PROJECTION = 11#
class mantidimaging.gui.windows.recon.presenter.ReconstructWindowPresenter(view: ReconstructWindowView, main_window: MainWindowView)[source]#

Bases: BasePresenter

ERROR_STRING = 'COR/Tilt finding failed: {}'#
create_recon_output_filename(prefix: str) str[source]#

Takes a naming prefix and creates a descriptive recon output filename based on algorithm and filter if filter kwargs used in recon

Parameters:

prefix – The filename prefix to add more detail about format

Returns:

The formatted filename

do_add_cor() None[source]#
do_algorithm_changed() None[source]#
do_calculate_cors_from_manual_tilt() None[source]#
do_clear_all_cors() None[source]#
do_cor_fit() None[source]#
do_preview_reconstruct_slice(cor=None, slice_idx: int | None = None, force_update: bool = False, reset_roi: bool = False) None[source]#
do_reconstruct_volume() None[source]#
do_remove_selected_cor() None[source]#
do_stack_reconstruct_slice(cor=None, slice_idx: int | None = None) None[source]#
do_update_projection() None[source]#
get_pixel_size_from_images() float[source]#
handle_stack_changed() None[source]#
notify(notification, slice_idx=None)[source]#
proj_180_degree_shape_matches_images(images) bool[source]#
set_last_cor(cor) None[source]#
set_preview_projection_idx(idx: int) None[source]#
set_preview_slice_idx(idx: int) None[source]#
set_row(row: int) None[source]#
set_stack_uuid(uuid) None[source]#
view: ReconstructWindowView#