pooch.Pooch.fetch¶
-
Pooch.
fetch
(fname)[source]¶ Get the absolute path to a file in the local storage.
If it’s not in the local storage, it will be downloaded. If the hash of file in local storage doesn’t match the one in the registry, will download a new copy of the file. This is considered a sign that the file was updated in the remote storage. If the hash of the downloaded file doesn’t match the one in the registry, will raise an exception to warn of possible file corruption.
Parameters: - fname : str
The file name (relative to the base_url of the remote data storage) to fetch from the local storage.
Returns: - full_path : str
The absolute path (including the file name) of the file in the local storage.