Dataset Utilities¶
Helper functions for dealing with datasets
This file contains a helper function for dealing with dataset names.
-
abed.datasets.
dataset_name
(dset)[source]¶ Get the dataset name for a given dataset
The user has the option to specify alternative names for datasets in the
DATASETS
configuration setting, through theDATASET_NAMES
variable. This function can be used to get the name of the dataset when theDATASET_NAMES
variable is specified or not. If the setting is not specified, a name is created by stripping any extensions from the dataset specified. In case the dataset is a tuple, the names of the datasets are combined.- Parameters
dset (str, tuple) – The dataset from the
DATASETS
configuration.- Returns
name – The name of the dataset
- Return type
str