Datasets

class indico.queries.datasets.CreateDataset(name, files, wait=True, from_local_images=False, image_filename_col='filename', batch_size=20)

Create a dataset and upload the associated files.

Parameters
  • name (str) – Name of the dataset

  • files (List[str]) – List of pathnames to the dataset files

  • wait (bool) – Wait for the dataset to upload and finish

Returns

Dataset object

Raises:

class indico.queries.datasets.GetDataset(id)

Retrieve a dataset description object

Parameters

id (int) – id of the dataset to query

Returns

Dataset object

Raises:

class indico.queries.datasets.GetDatasetStatus(id)

Get the status of a dataset

Parameters

id (int) – id of the dataset to query

Returns

COMPLETE or FAILED

Return type

status (str)

Raises:

class indico.queries.datasets.GetDatasetFileStatus(id)

Get the status of dataset file upload

Parameters

id (int) – id of the dataset to query

Returns

DOWNLOADED or FAILED

Return type

status (str)

Raises:

class indico.queries.datasets.ListDatasets(limit=100)

List all of your datasets

Parameters

limit (int) – Max number of datasets to retrieve. Default is 100

Returns

List[Dataset]

Raises: