cars.orchestrator.registry.unseen_registry

This module contains the unseen registry class

Module Contents

Classes

CarsDatasetRegistryUnseen

CarsDatasetRegistryUnseen

class cars.orchestrator.registry.unseen_registry.CarsDatasetRegistryUnseen(id_generator)[source]

Bases: cars.orchestrator.registry.abstract_registry.AbstractCarsDatasetRegistry

CarsDatasetRegistryUnseen This registry manages the unseen CarsDataset, that might be needed to get infos

get_cars_ds(future_result)[source]

Get a list of registered CarsDataset

Parameters

obj – object to get cars dataset from

:return corresponding CarsDataset :rtype: CarsDataset

cars_dataset_in_registry(cars_ds)[source]

Check if a CarsDataset is already registered, return id if exists

Parameters

cars_ds (CarsDataset) – cars dataset

:return : True if in registry, if of cars dataset :rtype : Tuple(bool, int)

add_cars_ds_to_unseen(cars_ds)[source]

Add cars dataset to unseen registry, and get corresponding id

Parameters

cars_ds (CarsDataset) – cars dataset

:return : id :rtype : int

get_cars_datasets_list()[source]

Get a list of registered CarsDataset

:return list of CarsDataset :rtype: list(CarsDataset)