Skip to content

Commit b898773

Browse files
committed
10_checkpoint.ipynb: Fix inverted condition in bc53e9f
The file should be removed if it exists, not if it does not.
1 parent 472eaf7 commit b898773

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

10_checkpoint.ipynb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,10 @@
362362
{
363363
"data": {
364364
"text/plain": [
365-
"['commit_graph_Stolee.df_edgelist.csv.gz 231']"
365+
"['commit_graph_Stolee-test.df_edgelist.csv.gz 236',\n",
366+
" 'commit_graph_Stolee-test.df_nodedata.csv.gz 272',\n",
367+
" 'commit_graph_Stolee.df_edgelist.csv.gz 231',\n",
368+
" 'commit_graph_Stolee.df_nodedata.csv.gz 267']"
366369
]
367370
},
368371
"execution_count": null,
@@ -800,8 +803,8 @@
800803
"_counter = 0\n",
801804
"\n",
802805
"df_filename = 'datasets/example_dataframe.csv.gz'\n",
803-
"# Path(df_filename).unlink(missing_ok=True)\n",
804-
"if not Path(df_filename).exists():\n",
806+
"# Path(df_filename).unlink(missing_ok=True) # requires Python 3.8 or later\n",
807+
"if Path(df_filename).exists():\n",
805808
" Path(df_filename).unlink()\n",
806809
"\n",
807810
"# first time it should perform computations and save, second time get from file\n",
@@ -1219,6 +1222,8 @@
12191222
"Converted 08_reach.ipynb.\n",
12201223
"Converted 09_git.ipynb.\n",
12211224
"Converted 10_checkpoint.ipynb.\n",
1225+
"Converted 11_datasets.ipynb.\n",
1226+
"Converted 12_repos.ipynb.\n",
12221227
"Converted A.09_git_explore.ipynb.\n",
12231228
"Converted index.ipynb.\n"
12241229
]

0 commit comments

Comments
 (0)