increase the cell timeout, don't redownload the zip if it already exists
"\n",
"zip_filepath = DATA_DIR.joinpath('tpscompare.zip')\n",
"\n",
+ "if not zip_filepath.exists():\n",
" url = 'https://zenodo.org/record/3351939/files/tpscompare.zip?download=1'\n",
- "urllib.request.urlretrieve(url, zip_filepath)"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
+ " urllib.request.urlretrieve(url, zip_filepath)\n",
+ " \n",
" with zipfile.ZipFile(zip_filepath, 'r') as zip_ref:\n",
" zip_ref.extractall(DATA_DIR)"
]
