template_data_fetch
- subcortexmesh.template_data_fetch.template_data_fetch(template: str, datapath: str | Path | None = None)[source]
Checks for the toolbox’s template data and prompts for download
- Parameters:
datapath (str, Path, optional) – Directory in which to download the template data. Default is the user’s home directory (pathlib’s Path.home()).
template (str) – The name of the template the surfaces to be used are from. For FreeSurfer outputs, it is ‘fsaverage’. For FSL FIRST, it is ‘fslfirst’.
- Returns:
toolboxdatadir – The path to the toolbox template data.
- Return type:
str