mailr20741 - in /trunk/test_suite: shared_data/model_free/bug_21079_local_tm_global_selection/ system_tests/ system_tests/script...


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

Header


Content

Posted by edward on September 02, 2013 - 14:12:
Author: bugman
Date: Mon Sep  2 14:12:14 2013
New Revision: 20741

URL: http://svn.gna.org/viewcvs/relax?rev=20741&view=rev
Log:
Created the Mf.test_bug_21079_local_tm_global_selection system test.

This is to catch bug #21079 (https://gna.org/bugs/?21079).


Added:
    
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/
    
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/local_tm_trunc.bz2
   (with props)
    
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/sphere_trunc.bz2
   (with props)
    
trunk/test_suite/system_tests/scripts/model_free/bug_21079_local_tm_global_selection.py
Modified:
    trunk/test_suite/system_tests/model_free.py

Added: 
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/local_tm_trunc.bz2
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/local_tm_trunc.bz2?rev=20741&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/local_tm_trunc.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: 
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/sphere_trunc.bz2
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/sphere_trunc.bz2?rev=20741&view=auto
==============================================================================
Binary file - no diff available.

Propchange: 
trunk/test_suite/shared_data/model_free/bug_21079_local_tm_global_selection/sphere_trunc.bz2
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: trunk/test_suite/system_tests/model_free.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/model_free.py?rev=20741&r1=20740&r2=20741&view=diff
==============================================================================
--- trunk/test_suite/system_tests/model_free.py (original)
+++ trunk/test_suite/system_tests/model_free.py Mon Sep  2 14:12:14 2013
@@ -470,6 +470,13 @@
 
         # Execute the script.
         self.script_exec(status.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'model_free'+sep+'bug_20683_bdc_inf_values.py')
+
+
+    def test_bug_21079_local_tm_global_selection(self):
+        """Test catching U{bug #21079<https://gna.org/bugs/?21079>}, the 
local tm global model selection."""
+
+        # Execute the script.
+        self.script_exec(status.install_path + 
sep+'test_suite'+sep+'system_tests'+sep+'scripts'+sep+'model_free'+sep+'bug_21079_local_tm_global_selection.py')
 
 
     def test_create_m4(self):

Added: 
trunk/test_suite/system_tests/scripts/model_free/bug_21079_local_tm_global_selection.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/scripts/model_free/bug_21079_local_tm_global_selection.py?rev=20741&view=auto
==============================================================================
--- 
trunk/test_suite/system_tests/scripts/model_free/bug_21079_local_tm_global_selection.py
 (added)
+++ 
trunk/test_suite/system_tests/scripts/model_free/bug_21079_local_tm_global_selection.py
 Mon Sep  2 14:12:14 2013
@@ -1,0 +1,32 @@
+"""This system test catches the local tm global model selection bug.
+
+The bug is:
+    - Bug #21079 (U{bug #21079<https://gna.org/bugs/?21079>}).
+"""
+
+# Python module imports.
+from os import sep
+
+# relax module imports.
+from status import Status; status = Status()
+
+
+# Path of the files.
+path = status.install_path + 
sep+'test_suite'+sep+'shared_data'+sep+'model_free'+sep+'bug_21079_local_tm_global_selection'
+
+# Load the state files.
+pipes = ['local_tm', 'sphere']
+files = ['local_tm_trunc', 'sphere_trunc']
+for i in range(len(pipes)):
+    pipe.create(pipes[i], 'mf')
+    results.read(file=files[i], dir=path)
+
+# Model selection.
+model_selection(method='AIC', modsel_pipe='final', pipes=['local_tm', 
'sphere'])
+
+# Display the sequence data for a sanity check.
+sequence.display()
+
+# Monte Carlo simulations.
+monte_carlo.setup(number=5)
+monte_carlo.create_data(method='back_calc')




Related Messages


Powered by MHonArc, Updated Mon Sep 02 15:00:01 2013