cars.orchestrator.registry.abstract_registry

This module contains the abstract registry class

Module Contents

Classes

AbstractCarsDatasetRegistry

AbstractCarsDatasetRegistry

class cars.orchestrator.registry.abstract_registry.AbstractCarsDatasetRegistry(id_generator)[source]

AbstractCarsDatasetRegistry This is the abstract class of registries, managing delayed CarsDatasets

abstract 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)

abstract get_cars_datasets_list()[source]

Get a list of registered CarsDataset

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

abstract get_cars_ds(future_result)[source]

Get a list of registered CarsDataset

Parameters

future_result – object to get cars dataset from

:return corresponding CarsDataset :rtype: CarsDataset

static get_future_cars_dataset_id(future_result)[source]

Get cars dataset id for current future result

Parameters

future_result (xr.Dataset or pd.DataFrame) – future result:

:return cars dataset id :rtype : int

static get_future_cars_dataset_position(future_result)[source]

Get cars dataset positions for current future result

Parameters

future_result (xr.Dataset or pd.DataFrame) – future result:

:return cars dataset id :rtype : tuple(int)