scanometrics.GUI.DropDownMenu package

Submodules

scanometrics.GUI.DropDownMenu.DropDownMenu module

class scanometrics.GUI.DropDownMenu.DropDownMenu.DropDownMenu(default_msg, help_text)

Bases: QWidget

A custom drop-down menu widget with signal emission on option selection.

initUI()

Set up the dropdown menu within the layout and connect its activation signal.

select_option()

Handle the selection of an option from the dropdown menu.

Emits the selected option as a signal if it is not the default message.

set_default_message(message)

Set and display the default message in the dropdown menu.

Args:

message (str): The message to be set as the default in the dropdown menu.

sgn

pyqtSignal(*types, name: str = …, revision: int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

scanometrics.GUI.DropDownMenu.SelectAcqlab module

class scanometrics.GUI.DropDownMenu.SelectAcqlab.SelectAcqLab(default_msg)

Bases: DropDownMenu

A dropdown menu widget for selecting acquisition labels.

get_items(sample_folder_path, sub_name, ses_nb)

Populate the dropdown menu with unique acquisition labels (T{x}w) from MRI files in the session directory.

Args:

sample_folder_path (str): The path to the sample folder. sub_name (str): The name of the subject. ses_nb (str): The session number.

initUI()

Set up the dropdown menu within the layout and connect its activation signal.

scanometrics.GUI.DropDownMenu.SelectPKLFile module

class scanometrics.GUI.DropDownMenu.SelectPKLFile.SelectPKLFile(default_msg, normative_model_ids)

Bases: DropDownMenu

A dropdown menu widget specifically designed for selecting .pkl files.

add_items(normative_model_ids)

Locate .pkl files in the specified directory and add them to the dropdown menu.

initUI()

Set up the UI and launch the .pkl file search.

scanometrics.GUI.DropDownMenu.SelectROI module

class scanometrics.GUI.DropDownMenu.SelectROI.SelectROI(default_msg)

Bases: DropDownMenu

Class for selecting Region of Interest (ROI) from a dropdown menu.

get_items(metric_names)

Populate the dropdown menu with items based on the contents of a specified directory.

Args:

metric_names (list): A list of metric names to be added to the dropdown menu.

initUI()

Initialize the UI for the dropdown menu.

scanometrics.GUI.DropDownMenu.SelectSes module

class scanometrics.GUI.DropDownMenu.SelectSes.SelectSes(default_msg)

Bases: DropDownMenu

A dropdown menu widget specifically designed for selecting session directories.

get_items(sample_folder_path, sub_name)

Populate the dropdown menu with session directories.

Args:

sample_folder_path (str): The path to the sample folder. sub_name (str): The name of the subject.

initUI()

Set up the UI by calling the parent initUI method.

scanometrics.GUI.DropDownMenu.SelectSub module

class scanometrics.GUI.DropDownMenu.SelectSub.SelectSub(default_msg)

Bases: DropDownMenu

A dropdown menu widget specifically designed for selecting subject directories.

get_items(sample_folder_path)

Populate the dropdown menu with subject directories.

Args:

sample_folder_path (str): The path to the sample folder.

initUI()

Set up the UI by calling the parent initUI method.