Skip to content

Commit

Permalink
fix output_folder creation in IEC notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-springer committed May 6, 2024
1 parent 7545d8e commit 0e1e698
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,11 @@
"\n",
"output_folder = os.path.join(os.path.dirname(os.path.dirname(os.getcwd())), 'TEMP', 'results')\n",
"try:\n",
" os.mkdir(output_folder)\n",
" os.makedirs(output_folder)\n",
"except OSError as error:\n",
" print(error)\n",
"\n",
"plt.savefig(output_folder+'\\Standoff_Scan.png', bbox_inches='tight') #Creates an image file of the standoff plot\n",
"plt.savefig(os.path.join(output_folder, 'Standoff_Scan.png'), bbox_inches='tight') #Creates an image file of the standoff plot\n",
"plt.show()"
]
},
Expand Down

0 comments on commit 0e1e698

Please sign in to comment.