scanometrics.GUI.PathSelector package

Submodules

scanometrics.GUI.PathSelector.PathSelector module

class scanometrics.GUI.PathSelector.PathSelector.PathSelector(placeholder_text, help_text="The sample folder's format must be in OASIS like format")

Bases: QWidget

A custom widget for selecting a folder path with additional validation.

browse_path()

Open a directory selection dialog and emit the selected path.

static check_bids_format(path)

Validate the structure of a directory to ensure it matches a bids-like structure.

Args:

path (str): The path to the directory to be checked.

initUI(placeholder_text)

Initialize the user interface.

Args:

placeholder_text (str): The placeholder text for the path line edit.

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.