environ
- get_dataset_from_absolute_path(path: Path) str[source]
Return the dataset name from an absolute path.
- get_path_from_environment_variable(name: str) Path[source]
Return the path to the directory specified by the environment variable name.
- Parameters:
name – The name of the environment variable.
- Returns:
The path to the directory specified by the environment variable.
- Raises:
KeyError – If the environment variable is not set.
AssertionError – If the path does not exist.