mailr22470 - /trunk/test_suite/system_tests/relax_disp.py


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

Header


Content

Posted by tlinnet on March 12, 2014 - 16:14:
Author: tlinnet
Date: Wed Mar 12 16:14:27 2014
New Revision: 22470

URL: http://svn.gna.org/viewcvs/relax?rev=22470&view=rev
Log:
Extended systemtest 
Relax_disp.test_value_write_calc_rotating_frame_params_auto_analysis() to 
test the writing of theta values.

Regarding sr #3124, (https://gna.org/support/index.php?3124) - Grace graphs 
production for R1rho analysis with R2_eff as function of Omega_eff.

Modified:
    trunk/test_suite/system_tests/relax_disp.py

Modified: trunk/test_suite/system_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_disp.py?rev=22470&r1=22469&r2=22470&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_disp.py (original)
+++ trunk/test_suite/system_tests/relax_disp.py Wed Mar 12 16:14:27 2014
@@ -3954,4 +3954,54 @@
         self.assert_(access(theta_filepath, F_OK))
         self.assert_(access(w_eff_filepath, F_OK))
 
-
+        # Open the files for testing.
+        theta_file = open(theta_filepath, 'r')
+
+        # Loop over the theta file to test values.
+        for line in theta_file:
+            # Skip lines starting with #.
+            if line[0] == "#":
+                continue
+
+            # Split the line
+            linesplit = line.split()
+
+            # Print lines, not including newline character.
+            print(linesplit[:6])
+
+            # Assume values
+            if linesplit[0] == "None" and linesplit[1] == "13" and 
linesplit[2] == "L":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "15" and 
linesplit[2] == "R":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "16" and 
linesplit[2] == "T":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "25" and 
linesplit[2] == "Q":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "26" and 
linesplit[2] == "Q":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "28" and 
linesplit[2] == "Q":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "39" and 
linesplit[2] == "L":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "40" and 
linesplit[2] == "M":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "41" and 
linesplit[2] == "A":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "43" and 
linesplit[2] == "F":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "44" and 
linesplit[2] == "I":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "45" and 
linesplit[2] == "K":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "49" and 
linesplit[2] == "A":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "52" and 
linesplit[2] == "V":
+                self.assert_(linesplit[5] != "None")
+            elif linesplit[0] == "None" and linesplit[1] == "53" and 
linesplit[2] == "A":
+                self.assert_(linesplit[5] != "None")
+
+        # Close files
+        theta_file.close()
+
+




Related Messages


Powered by MHonArc, Updated Wed Mar 12 21:40:03 2014