runner¶
BaseTaskRunner
utilities.
- cneuromax.utils.runner.get_project_and_task_names()[source]¶
Retrieves
project
andtask
from script arguments.- Raises:
RuntimeError – If
project
ortask
arguments are missing.- Return type:
- Returns:
The
project
andtask
names.
- cneuromax.utils.runner.get_absolute_project_path()[source]¶
.
- Return type:
- 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 theproject
module does not exist.- Return type:
- Returns:
The
project
module.
- cneuromax.utils.runner.get_task_runner_class()[source]¶
.
- Raises:
RuntimeError – If the
project
module does not define aBaseTaskRunner
class.- Return type:
- Returns:
The
BaseTaskRunner
class.