tadded error message if undefined visualization method is called - sphere - GPU… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 8fc31f7a414c45d4873d81dab38d5d1dda71e829 | |
parent 4436ce6f6155e61db1ea361d3119c1275744c095 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 4 Dec 2012 13:33:26 +0100 | |
added error message if undefined visualization method is called | |
Diffstat: | |
M python/sphere.py | 2 ++ | |
1 file changed, 2 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1309,6 +1309,8 @@ def visualize(project, method = 'energy', savefig = True… | |
ax2.set_ylabel('Dilation [m]') | |
ax2.plot(xdisp, dilation, '+-') | |
ax2.grid() | |
+ else : | |
+ print("Visualization type '" + method + "' not understood") | |
else : | |
# Write values to textfile |