mailr3344 - /branches/consistency_tests_1.2/test_suite/consistency_tests.py


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

Header


Content

Posted by edward on July 22, 2007 - 18:15:
Author: bugman
Date: Sun Jul 22 18:14:57 2007
New Revision: 3344

URL: http://svn.gna.org/viewcvs/relax?rev=3344&view=rev
Log:
Application of Seb's patch 'patch_consistency_tests__l1.2_r3342-2'.

The patch is located at 
https://mail.gna.org/public/relax-devel/2007-07/msg00054.html.

The patch 'patch_consistency_tests__l1.2_r3342-2' adds missing lines for
variables 'orientation' and 'tc' in the file 'test_suite/consistency_tests.py'
and also corrects the run type from 'jw' to 'ct' (This is a remnant from the
jw_mapping code from which the consistency_tests code was inspired.).


Modified:
    branches/consistency_tests_1.2/test_suite/consistency_tests.py

Modified: branches/consistency_tests_1.2/test_suite/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/consistency_tests_1.2/test_suite/consistency_tests.py?rev=3344&r1=3343&r2=3344&view=diff
==============================================================================
--- branches/consistency_tests_1.2/test_suite/consistency_tests.py (original)
+++ branches/consistency_tests_1.2/test_suite/consistency_tests.py Sun Jul 22 
18:14:57 2007
@@ -149,7 +149,7 @@
         self.run = run
 
         # Create the run.
-        self.relax.generic.runs.create(self.run, 'jw')
+        self.relax.generic.runs.create(self.run, 'ct')
 
         # Read the sequence.
         self.relax.interpreter._Sequence.read(self.run, file='test_seq', 
dir=sys.path[-1] + '/test_suite/data')
@@ -157,8 +157,12 @@
         # Try to set the values.
         bond_length = 1.02 * 1e-10
         csa = -170 * 1e-6
+        orientation = 15.7
+        tc = 13 * 1e-9
         self.relax.interpreter._Value.set(self.run, bond_length, 
'bond_length')
         self.relax.interpreter._Value.set(self.run, csa, 'csa')
+        self.relax.interpreter._Value.set(self.run, orientation, 
'orientation')
+        self.relax.interpreter._Value.set(self.run, tc, 'tc')
 
         # Test values.
         for i in xrange( len(self.relax.data.res[self.run]) ):
@@ -168,6 +172,12 @@
             if self.relax.data.res[self.run][i].csa != csa:
                 print 'Value of csa has not been set correctly'
                 return
+            if self.relax.data.res[self.run][i].orientation != orientation:
+                print 'Value of orientation has not been set correctly'
+                return
+            if self.relax.data.res[self.run][i].tc != tc:
+                print 'Value of tc has not been set correctly'
+                return
 
         # Success.
         return 1




Related Messages


Powered by MHonArc, Updated Sun Jul 22 18:40:05 2007