eegdash.paths module#
Path utilities and cache directory management.
This module provides functions for resolving consistent cache directories and path management throughout the EEGDash package, with integration to MNE-Python’s configuration system.
- eegdash.paths.get_default_cache_dir() Path[source]
Resolve the default cache directory for EEGDash data.
The first match wins:
The
EEGDASH_CACHE_DIRenvironment variable.An existing
.eegdash_cachein the current working directory (the previous default), so an existing cache is not downloaded again.An
eegdashdirectory inside$SCRATCHwhen it points to a writable directory (common on HPC clusters).The
MNE_DATAconfiguration of MNE-Python.The platform user-cache directory (
platformdirs.user_cache_dir())..eegdash_cachein the current working directory (last resort).
The resolved path is logged once per process.
- Returns:
The resolved, absolute path to the default cache directory.
- Return type:
Path