mdt.gui.model_fit package

Submodules

mdt.gui.model_fit.qt_main module

class mdt.gui.model_fit.qt_main.AboutDialog(parent)[source]

Bases: mdt.gui.model_fit.design.ui_about_dialog.Ui_AboutDialog, MockClass

class mdt.gui.model_fit.qt_main.GetExampleDataDialog(parent, shared_state)[source]

Bases: mdt.gui.model_fit.design.ui_dialog_get_example_data.Ui_GetExampleDataDialog, MockClass

class mdt.gui.model_fit.qt_main.MDTGUISingleModel(shared_state, computations_thread)[source]

Bases: MockClass, mdt.gui.model_fit.design.ui_main_gui.Ui_MainWindow

closeEvent(event)[source]
computations_finished()[source]
computations_started()[source]
send_sigint(*args)[source]
update_log(string)[source]
class mdt.gui.model_fit.qt_main.RuntimeSettingsDialog(parent)[source]

Bases: mdt.gui.model_fit.design.ui_runtime_settings_dialog.Ui_RuntimeSettingsDialog, MockClass

selection_updated()[source]
mdt.gui.model_fit.qt_main.pyqtSlot(*args, **kwargs)

Mocked decorator, needed in the case we need to mock a decorator

mdt.gui.model_fit.qt_main.start_gui(base_dir=None, app_exec=True)[source]

Start the model fitting GUI.

Parameters:
  • base_dir (str) – the starting directory for the file opening actions
  • app_exec (boolean) – if true we execute the Qt application, set to false to disable.

mdt.gui.model_fit.utils module

class mdt.gui.model_fit.utils.SharedState(*args, **kwargs)[source]

Bases: MockClass

The shared state for the model fitting GUI

base_dir

the base dir for all file opening operations

Type:str
dimension_index

the dimension index used in various operations

Type:int
slice_index

the slice index used in various operations

Type:int
state_updated_signal = <MockNamedComponent name='mock()' id='140163129353776'>
mdt.gui.model_fit.utils.results_preselection_names(data)[source]

Generate a list of useful map names to display.

This is primarily to be used as argument to the config option maps_to_show in the function view_maps().

Parameters:data (str or dict or list of str) – either a directory or a dictionary of results or a list of map names.
Returns:the list of useful/filtered map names.
Return type:list of str

Module contents