Skip to content

Commit e39ec7e

Browse files
committed
Update: filename verification
1 parent 1402f37 commit e39ec7e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

hands-on/session II/2.Explore_Data.ipynb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@
5656
"source": [
5757
"# Change the name of data file with the name of your downloaded subregion\n",
5858
"data_file = \"enter_the_name.here\"\n",
59+
"\n",
60+
"assert os.path.isfile(data_file), f\"Error: The file '{data_file}' does not exist.\"\n",
61+
"\n",
5962
"print(\"You have successfully defined the name of the file\")\n"
6063
]
6164
},
@@ -379,7 +382,7 @@
379382
"name": "python",
380383
"nbconvert_exporter": "python",
381384
"pygments_lexer": "ipython3",
382-
"version": "3.11.11"
385+
"version": "3.10.14"
383386
}
384387
},
385388
"nbformat": 4,

0 commit comments

Comments
 (0)