Data utilities¶
Helper functions to download and manage datasets.
-
dynn.data.data_util.
download_if_not_there
(file, url, path, force=False, local_file=None)¶ Downloads a file from the given url if and only if the file doesn’t already exist in the provided path or
force=True
Parameters: - file (str) – File name
- url (str) – Url where the file can be found (without the filename)
- path (str) – Path to the local folder where the file should be stored
- force (bool, optional) – Force the file download (useful if you suspect that the file might have changed)
- file – File name for the local file (defaults to
file
)