hpvsim.data.get_data module¶
Download data needed for HPVsim.
Typically, this is done automatically: on load, HPVsim checks if the data are already downloaded, and if not, downloads them using the quick_download() function. The “slow download” functions supply the files that are usually zipped and stored in a separate repository, hpvsim_data.
To ensure the data is updated, update the data_version parameter below.
- check_downloaded(verbose=1, check_version=True)[source]¶
Check if data is downloaded. Note: to update data, update the date here and in data/files/metadata.json.
- Parameters:
verbose (int) – detail to print (0 = none, 1 = reason for failure, 2 = everything)
check_version (bool) – whether to treat a version mismatch as a failure