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
DATASETSconfiguration setting, through theDATASET_NAMESvariable. This function can be used to get the name of the dataset when theDATASET_NAMESvariable 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
DATASETSconfiguration.- Returns
name – The name of the dataset
- Return type
str