mailr6315 - /1.3/test_suite/system_tests/consistency_tests.py


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

Header


Content

Posted by sebastien . morin . 1 on June 04, 2008 - 20:39:
Author: semor
Date: Wed Jun  4 20:31:35 2008
New Revision: 6315

URL: http://svn.gna.org/viewcvs/relax?rev=6315&view=rev
Log:
Corrected looping over residues in the consistency_tests system test.

These changes make the system test pass and are based on the jw_mapping 
system test.


Modified:
    1.3/test_suite/system_tests/consistency_tests.py

Modified: 1.3/test_suite/system_tests/consistency_tests.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/consistency_tests.py?rev=6315&r1=6314&r2=6315&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/consistency_tests.py (original)
+++ 1.3/test_suite/system_tests/consistency_tests.py Wed Jun  4 20:31:35 2008
@@ -95,6 +95,7 @@
         self.relax.interpreter._Minimisation.calc()
 
         # Loop over residues.
+        index = 0
         for res in residue_loop():
             # Residues -2 and -1 have data.
             if res.num == -2 or res.num == -1:
@@ -102,6 +103,7 @@
                 self.assertAlmostEqual(res.spin[0].j0, j0[index])
                 self.assertAlmostEqual(res.spin[0].f_eta, f_eta[index])
                 self.assertAlmostEqual(res.spin[0].f_r2, f_r2[index])
+                index = index + 1
 
             # Other residues have insufficient data.
             else:




Related Messages


Powered by MHonArc, Updated Wed Jun 04 21:20:12 2008