Skip to content

Commit

Permalink
fix donwload link
Browse files Browse the repository at this point in the history
  • Loading branch information
rchan26 committed Dec 4, 2023
1 parent fcea6d3 commit db98e64
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions paper-examples/ucr_anomalies_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,19 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"DATASET_PATH = \"Univariate_arff\"\n",
"ZIP_URL = (\n",
" \"http://www.timeseriesclassification.com/Downloads/Archives/Univariate2018_arff.zip\"\n",
")\n",
"ZIP_PATH = \"Univariate2018_arff.zip\"\n",
"DATASET_PATH = Data.DATA_DIR + \"Univariate_arff\"\n",
"ZIP_URL = \"https://www.timeseriesclassification.com/aeon-toolkit/Archives/Univariate2018_arff.zip\"\n",
"ZIP_PATH = Data.DATA_DIR + \"Univariate2018_arff.zip\"\n",
"\n",
"if not os.path.exists(DATASET_PATH) and not os.path.exists(ZIP_PATH):\n",
" try:\n",
" Data.download(ZIP_URL, ZIP_PATH)\n",
"\n",
" # Extract dataset\n",
" !unzip {ZIP_PATH}\n",
" # extract dataset\n",
" shutil.unpack_archive(ZIP_PATH, Data.DATA_DIR)\n",
" except:\n",
" if os.path.exists(DATASET_PATH):\n",
" shutil.rmtree(DATASET_PATH)\n",
Expand Down Expand Up @@ -64,7 +61,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.7"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down

0 comments on commit db98e64

Please sign in to comment.