get_file(fname, origin, untar=False, md5_hash=None, cache_subdir='datasets')

Downloads a file from a URL if it not already in the cache.

Passing the MD5 hash will verify the file after download as well as if it is already present in the cache.


  • fname: name of the file
  • origin: original URL of the file
  • untar: boolean, whether the file should be decompressed
  • md5_hash: MD5 hash of the file for verification
  • cache_subdir: directory being used as the cache


Path to the downloaded file