mailr24097 - /branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 18, 2014 - 16:39:
Author: bugman
Date: Wed Jun 18 16:39:53 2014
New Revision: 24097

URL: http://svn.gna.org/viewcvs/relax?rev=24097&view=rev
Log:
The disp_profile_all.py super script now prints out the current relax version 
information.

This is so that the log files contain information about the repository 
revision and path.


Modified:
    
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py

Modified: 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py?rev=24097&r1=24096&r2=24097&view=diff
==============================================================================
--- 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py
    (original)
+++ 
branches/disp_spin_speed/test_suite/shared_data/dispersion/profiling/disp_profile_all.py
    Wed Jun 18 16:39:53 2014
@@ -25,11 +25,17 @@
 
 # Python module imports.
 from numpy import average, float64, std, zeros
-from os import sep
+from os import pardir, path, sep
 from re import search
 from shutil import copyfile
 from subprocess import PIPE, Popen
 import sys
+
+# Modify the system path to add the base directory of the current relax 
version.
+sys.path.append(path.join(pardir, pardir, pardir, pardir))
+
+# relax module imports.
+import version
 
 
 # The number of iterations to run each script for the statistics.
@@ -68,6 +74,11 @@
 # The Python executable name.
 python = 'python'
 
+
+# First a printout of the relax version.
+sys.stdout.write("\n\nCurrent relax version:  ")
+sys.stdout.write(version.version_full())
+sys.stdout.write("\n\n")
 
 # Copy the current scripts to the base directory of the alternative relax 
version.
 for script in scripts:




Related Messages


Powered by MHonArc, Updated Wed Jun 18 17:00:03 2014