runner

BaseTaskRunner utilities.

cneuromax.utils.runner.get_project_and_task_names()[source]

Retrieves project and task from script arguments.

Raises:

RuntimeError – If project or task arguments are missing.

Return type:

tuple[str, str]

Returns:

The project and task names.

cneuromax.utils.runner.get_absolute_project_path()[source]

.

Return type:

str

Returns:

The absolute path to the project module.

cneuromax.utils.runner.get_project_module()[source]

Retrieves the project module.

Raises:

RuntimeError – If the project argument is invalid or the project module does not exist.

Return type:

ModuleType

Returns:

The project module.

cneuromax.utils.runner.get_task_runner_class()[source]

.

Raises:

RuntimeError – If the project module does not define a BaseTaskRunner class.

Return type:

Any

Returns:

The BaseTaskRunner class.