nimare.extract.utils.get_data_dirs

get_data_dirs(data_dir=None)[source]

Return the directories in which NiMARE looks for data.

Added in version 0.0.2.

This is typically useful for the end-user to check where the data is downloaded and stored.

Parameters:

data_dir (pathlib.Path or str, optional) – Path of the data directory. Used to force data storage in a specified location. Default: None

Returns:

paths – Paths of the dataset directories.

Return type:

list of str

Notes

Taken from Nilearn. This function retrieves the datasets directories using the following priority :

  1. defaults system paths

  2. the keyword argument data_dir

  3. the global environment variable NIMARE_SHARED_DATA

  4. the user environment variable NIMARE_DATA

  5. nimare_data in the user home folder