tprint filename when saving figure in visualize() - 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 517744e5bea277a6912c9be2f1187a343881b9bc
(DIR) parent 39b7e6495ec07a933a8cf89eb55d1ff2baeedc5c
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Mon, 19 Jan 2015 11:20:37 +0100
print filename when saving figure in visualize()
Diffstat:
M python/sphere.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -5976,7 +5976,9 @@ class sim:
# Optional save of figure
if (outformat != 'txt'):
if savefig:
- fig.savefig("{0}-{1}.{2}".format(self.sid, method, outformat))
+ filename = "{0}-{1}.{2}".format(self.sid, method, outformat))
+ fig.savefig(filename)
+ print(filename)
fig.clf()
else:
plt.show()