pardata.dataset.Dataset.is_downloaded

Dataset.is_downloaded()

Check to see if the dataset was downloaded. We determine this by comparing the extracted file tree with the file list _file_list_file() (their existence, types, and sizes). In this way, if the extraction of the archive failed, this should return False and the user would not be misled. For performance reasons, we do not examine the content of the extracted files.

Returns

True if the dataset has been downloaded and False otherwise.

Return type

bool

Warning

is_downloaded() will search for the dataset files in Dataset._data_dir (passed in via data_dir in the constructor Dataset). If after downloading, you manipulate the data files outside the control of this library, this method may produce unexpected behavior.