From ce248e8ab9e4c70ce167ebe904471460ae802feb Mon Sep 17 00:00:00 2001 From: Laurin Luttmann Date: Mon, 2 Sep 2024 15:12:13 +0200 Subject: [PATCH] improved scheduling notebook for colab usage --- examples/other/2-scheduling.ipynb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/other/2-scheduling.ipynb b/examples/other/2-scheduling.ipynb index df616fbf..ffe6782b 100644 --- a/examples/other/2-scheduling.ipynb +++ b/examples/other/2-scheduling.ipynb @@ -689,14 +689,13 @@ } ], "source": [ - "\n", "%%bash\n", "\n", "# Define the folder path\n", "DATA_PATH=\"./taillard\"\n", "\n", "# Check if the folder exists\n", - "if [ -d \"$FOLDER_PATH\" ]; then\n", + "if [ -d \"$DATA_PATH\" ]; then\n", " echo \"Folder already exists.\"\n", "else\n", " echo \"Folder does not exist. Creating folder and downloading taillard instances...\"\n", @@ -706,7 +705,9 @@ " ! wget http://mistic.heig-vd.ch/taillard/problemes.dir/ordonnancement.dir/jobshop.dir/tai20_20.txt -O taillard/tai20_20.txt\n", " ! wget http://mistic.heig-vd.ch/taillard/problemes.dir/ordonnancement.dir/jobshop.dir/tai30_15.txt -O taillard/tai30_15.txt\n", " ! wget http://mistic.heig-vd.ch/taillard/problemes.dir/ordonnancement.dir/jobshop.dir/tai30_20.txt -O taillard/tai30_20.txt\n", - "fi" + "fi\n", + "\n", + "exit 0" ] }, {