Skip to content

Commit

Permalink
Fix 10-band batch processing notebook to create output directories
Browse files Browse the repository at this point in the history
  • Loading branch information
poynting committed May 1, 2021
1 parent ba3d1ac commit 820e869
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Batch Processing-10Band.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@
"def update_f2(val):\n",
" f2.value=val\n",
"\n",
"if not os.path.exists(outputPath):\n",
" os.makedirs(outputPath)\n",
"if generateThumbnails and not os.path.exists(thumbnailPath):\n",
" os.makedirs(thumbnailPath)\n",
"\n",
"# Save out geojson data so we can open the image capture locations in our GIS\n",
"with open(os.path.join(outputPath,'imageSet.json'),'w') as f:\n",
" f.write(str(geojson_data))\n",
Expand Down Expand Up @@ -338,7 +343,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
"version": "3.7.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 820e869

Please sign in to comment.