1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

Script now adds plot images directly in benchmark dir

This commit is contained in:
Dennis Potter 2018-08-04 14:29:57 +02:00
parent 3910fd958d
commit 44f5d43513

View file

@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 82,
"execution_count": 347,
"metadata": {
"collapsed": true
},
@ -34,7 +34,7 @@
},
{
"cell_type": "code",
"execution_count": 83,
"execution_count": 348,
"metadata": {
"collapsed": false
},
@ -120,7 +120,7 @@
},
{
"cell_type": "code",
"execution_count": 84,
"execution_count": 349,
"metadata": {
"collapsed": false
},
@ -164,7 +164,7 @@
},
{
"cell_type": "code",
"execution_count": 85,
"execution_count": 350,
"metadata": {
"collapsed": false
},
@ -207,7 +207,7 @@
},
{
"cell_type": "code",
"execution_count": 88,
"execution_count": 351,
"metadata": {
"collapsed": false
},
@ -250,7 +250,7 @@
},
{
"cell_type": "code",
"execution_count": 89,
"execution_count": 352,
"metadata": {
"collapsed": false
},
@ -300,7 +300,7 @@
},
{
"cell_type": "code",
"execution_count": 341,
"execution_count": 353,
"metadata": {
"collapsed": false
},
@ -369,7 +369,7 @@
},
{
"cell_type": "code",
"execution_count": 244,
"execution_count": 354,
"metadata": {
"collapsed": false
},
@ -395,7 +395,7 @@
},
{
"cell_type": "code",
"execution_count": 346,
"execution_count": 356,
"metadata": {
"collapsed": false
},
@ -607,9 +607,19 @@
" #Show plot\n",
" plt.show()\n",
"\n",
" # Create plot dir\n",
" plot_path = '{}/{}/plots'.format(root_dir, benchmark_dir)\n",
" \n",
" import os, errno\n",
"\n",
" try:\n",
" os.makedirs(plot_path)\n",
" except OSError as e:\n",
" if e.errno != errno.EEXIST:\n",
" raise\n",
" \n",
" #Save plot\n",
" fig.savefig('./plots/{}_{}.png'.format(settings_array[i][0], settings_array[i][1]))"
" fig.savefig('{}/{}_{}.png'.format(plot_path, settings_array[i][0], settings_array[i][1]))"
]
},
{