mailr7991 - in /1.3/test_suite/system_tests: model_free.py scripts/bugs_12582_12591.py


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

Header


Content

Posted by edward on November 20, 2008 - 22:53:
Author: bugman
Date: Thu Nov 20 22:53:30 2008
New Revision: 7991

URL: http://svn.gna.org/viewcvs/relax?rev=7991&view=rev
Log:
Added a catch for bug #12607 (https://gna.org/bugs/?12607) to the 
bugs_12582_12591.py script.

This bug was reported by Chris Brosey (chris dot a dot brosey att vanderbilt 
dot edu).


Modified:
    1.3/test_suite/system_tests/model_free.py
    1.3/test_suite/system_tests/scripts/bugs_12582_12591.py

Modified: 1.3/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/model_free.py?rev=7991&r1=7990&r2=7991&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/model_free.py (original)
+++ 1.3/test_suite/system_tests/model_free.py Thu Nov 20 22:53:30 2008
@@ -143,11 +143,17 @@
             self.assertEqual(str(sub_obj1), str(sub_obj2))
 
 
-    def test_bugs_12582_12591(self):
-        """Test catching bugs #12582 and #12591 as submitted by Chris 
Brosey."""
+    def test_bugs_12582_12591_12607(self):
+        """Test catching bugs #12582, #12591 and #12607 as submitted by 
Chris Brosey."""
 
         # Execute the script.
         self.relax.interpreter.run(script_file=sys.path[-1] + 
'/test_suite/system_tests/scripts/bugs_12582_12591.py')
+
+        # Alias the current data pipe.
+        cdp = pipes.get_pipe()
+
+        # Test for bug #12607 (S2 changes because it is in the grid search 
when it should not be).
+        self.assertNotEqual(cdp.mol[0].res[1].spin[0].s2, 1.0)
 
 
     def test_create_m4(self):

Modified: 1.3/test_suite/system_tests/scripts/bugs_12582_12591.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/scripts/bugs_12582_12591.py?rev=7991&r1=7990&r2=7991&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/scripts/bugs_12582_12591.py (original)
+++ 1.3/test_suite/system_tests/scripts/bugs_12582_12591.py Thu Nov 20 
22:53:30 2008
@@ -1,8 +1,9 @@
 """This system test catches 2 bugs submitted by Chris Brosey.
 
 The bugs include:
-    - Bug #12582 (https://gna.org/bugs/index.php?12582).
-    - Bug #12591 (https://gna.org/bugs/index.php?12591).
+    - Bug #12582 (https://gna.org/bugs/?12582).
+    - Bug #12591 (https://gna.org/bugs/?12591).
+    - Bug #12607 (https://gna.org/bugs/?12607).
 """
 
 # Python module imports.
@@ -37,3 +38,13 @@
 sequence.display()
 eliminate(function=None, args=None)
 model_selection(method='AIC', modsel_pipe='aic', pipes=['tm0', 'tm1'])
+
+
+
+# Catch bug #12607 (https://gna.org/bugs/?12607).
+#################################################
+
+model_free.remove_tm(spin_id=None)
+diffusion_tensor.init(params=1e-08, time_scale=1.0, d_scale=1.0, 
angle_units='deg', param_types=0, spheroid_type=None, fixed=False)
+fix(element='all_spins', fixed=True)
+grid_search(lower=None, upper=None, inc=11, constraints=True, verbosity=1)




Related Messages


Powered by MHonArc, Updated Thu Nov 20 23:40:02 2008