tcopy plots to article folder - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 594c5951fb983bab5e97048f5cdf1150ebdef7c4
(DIR) parent 996461e2d54e623f253de95ca14b28c262993191
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Thu, 4 Sep 2014 15:50:17 +0200
copy plots to article folder
Diffstat:
M python/consolidation-curve.py | 6 ++++--
M python/diffusivity-results.py | 9 ++++++---
M python/permeability-results.py | 5 ++++-
3 files changed, 14 insertions(+), 6 deletions(-)
---
(DIR) diff --git a/python/consolidation-curve.py b/python/consolidation-curve.py
t@@ -3,6 +3,7 @@ import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size': 18, 'font.family': 'serif'})
import os
+import shutil
import sphere
import numpy
t@@ -98,5 +99,6 @@ plt.legend(loc=0)
plt.tight_layout()
filename = 'cons-curves.pdf'
plt.savefig(filename)
-print(os.getcwd() + '/' + filename)
-plt.savefig(filename)
+#print(os.getcwd() + '/' + filename)
+shutil.copyfile(filename, '/home/adc/articles/own/2-org/' + filename)
+print(filename)
(DIR) diff --git a/python/diffusivity-results.py b/python/diffusivity-results.py
t@@ -3,6 +3,7 @@ import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size': 18, 'font.family': 'serif'})
import os
+import shutil
import sphere
import numpy
t@@ -36,8 +37,8 @@ for sigma0 in sigma0_list:
phi_bar = numpy.append(phi_bar, sim.phi_bar)
#sim.writeVTKall()
- else:
- print(sid + ' not found')
+ #else:
+ #print(sid + ' not found')
i += 1
t@@ -62,4 +63,6 @@ for tl in ax2.get_yticklabels():
filename = 'diffusivity-sigma0-vs-alpha.pdf'
plt.tight_layout()
plt.savefig(filename)
-print(os.getcwd() + '/' + filename)
+shutil.copyfile(filename, '/home/adc/articles/own/2-org/' + filename)
+#print(os.getcwd() + '/' + filename)
+print(filename)
(DIR) diff --git a/python/permeability-results.py b/python/permeability-results.py
t@@ -2,6 +2,7 @@
import matplotlib
matplotlib.use('Agg')
matplotlib.rcParams.update({'font.size': 18, 'font.family': 'serif'})
+import shutil
import os
import numpy
t@@ -88,5 +89,7 @@ plt.grid()
plt.legend(loc='lower left')
plt.tight_layout()
filename = 'permeability-dpdz-vs-K-vs-c.pdf'
-print(os.getcwd() + '/' + filename)
+#print(os.getcwd() + '/' + filename)
plt.savefig(filename)
+shutil.copyfile(filename, '/home/adc/articles/own/2-org/' + filename)
+print(filename)