nimare.extract.utils.get_data_dirs

get_data_dirs(data_dir=None)[source]

Return the directories in which NiMARE looks for data.

New 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 (list of str) – Paths of the dataset directories.

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