tAdded exec python function, which executes sphere with a target project - sphe… | |
git clone git://src.adamsgaard.dk/sphere | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit 2bedbd480e7b28012e20ca2b87df99fc452643a2 | |
parent 49277e1ca814ee2535c3e7eb96ddc972b010dd57 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Thu, 6 Sep 2012 13:33:34 +0200 | |
Added exec python function, which executes sphere with a target project | |
Diffstat: | |
M python/sphere.py | 6 ++++++ | |
1 file changed, 6 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/python/sphere.py b/python/sphere.py | |
t@@ -1065,6 +1065,12 @@ def visualize(project, method = 'energy', savefig = Fal… | |
else: | |
plt.show() | |
+def exec(project): | |
+ """ Execute sphere with target project | |
+ """ | |
+ subprocess.call("cd ..; ./sphere_*_X86_64 " + project, shell=True) | |
+ | |
+ | |
def status(project): | |
""" Check the status.dat file for the target project, |