read_gli_task

gli.task.read_gli_task(task_path: str, verbose=True)

Read a local GLI task file and return a task object.

Parameters:
  • task_path (str) – Path to the task file.

  • verbose (bool, optional) – Whether to print the task description, defaults to True.

Returns:

A task object.

Return type:

gli.task.GLITask

Notes

This function is used to read a GLI task file locally. It is not used to fetch a task configuration from a remote server. If you want to download any task configuration provided by GLI, use gli.dataloading.get_gli_task() instead.

Additionally, this function is useful when you want to test loading a new task configuration file locally.