hpvsim.data.downloaders 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.

Running this file as a script will remove and then re-download all data.

get_data(serial=False, **kwargs)[source]

Download data in parallel

quick_download(verbose=True, init=False)[source]

Download pre-processed data files

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

remove_data(verbose=True, **kwargs)[source]

Remove downloaded data; arguments passed to sc.rmpath()