camel_tools.data¶
This sub-module contains utilities for locating datastes for the various CAMeL Tools components.
Classes¶
-
class
camel_tools.data.
ComponentInfo
¶ Named tuple containing information about a component.
-
datasets
¶ A set of all datasets for this component.
Type: frozenset
ofDatasetInfo
-
-
class
camel_tools.data.
DatasetInfo
¶ Named tuple containing information about a dataset.
-
path
¶ The path to this dataset.
Type: Path
-
-
class
camel_tools.data.
DataCatalogue
¶ This class allows querying datasets provided by CAMeL Tools.
-
static
get_component_info
(component)¶ Get the catalogue entry for a given component.
Parameters: component ( str
) – Name of the component to lookup in the catalogue.Returns: The catalogue entry associated with the given component. Return type: ComponentInfo
Raises: DataLookupException
– If component is not a valid component name.
-
static
get_dataset_info
(component, dataset=None)¶ Get the catalogue entry for a given dataset for a given component.
Parameters: Returns: The catalogue entry associated with the given dataset.
Return type: Raises: DataLookupException
– If component is not a valid component name or if dataset is not a valid dataset name for component.
-
static