mailr21666 - /trunk/test_suite/gui_tests/relax_disp.py


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

Header


Content

Posted by edward on November 27, 2013 - 09:56:
Author: bugman
Date: Wed Nov 27 09:56:55 2013
New Revision: 21666

URL: http://svn.gna.org/viewcvs/relax?rev=21666&view=rev
Log:
Fixes for the Relax_disp.test_tp02_data_to_tp02 GUI test.

This should have been fixed in the relax_disp branch.


Modified:
    trunk/test_suite/gui_tests/relax_disp.py

Modified: trunk/test_suite/gui_tests/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/gui_tests/relax_disp.py?rev=21666&r1=21665&r2=21666&view=diff
==============================================================================
--- trunk/test_suite/gui_tests/relax_disp.py (original)
+++ trunk/test_suite/gui_tests/relax_disp.py Wed Nov 27 09:56:55 2013
@@ -34,7 +34,8 @@
 from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
 from pipe_control.mol_res_spin import spin_loop
 from pipe_control.pipes import switch
-from specific_analyses.relax_disp.variables import MODEL_CR72, MODEL_IT99, 
MODEL_LM63, MODEL_NOREX, MODEL_NS_CPMG_2SITE_EXPANDED, MODEL_R2EFF, MODEL_TP02
+from specific_analyses.relax_disp.disp_data import generate_r20_key
+from specific_analyses.relax_disp.variables import EXP_TYPE_R1RHO, 
MODEL_CR72, MODEL_IT99, MODEL_LM63, MODEL_NOREX, 
MODEL_NS_CPMG_2SITE_EXPANDED, MODEL_R2EFF, MODEL_TP02
 from status import Status; status = Status()
 from test_suite.gui_tests.base_classes import GuiTestCase
 
@@ -514,6 +515,10 @@
         kex = 1234.56789
         delta_omega = [7.0, 9.0]
 
+        # The R20 keys.
+        r20_key1 = generate_r20_key(exp_type=EXP_TYPE_R1RHO, frq=500e6)
+        r20_key2 = generate_r20_key(exp_type=EXP_TYPE_R1RHO, frq=800e6)
+
         # Switch to the 'TP02' model data pipe, then check for each spin.
         switch('TP02')
         spin_index = 0
@@ -522,8 +527,8 @@
             print("\nSpin %s." % spin_id)
 
             # Check the fitted parameters.
-            self.assertAlmostEqual(spin.r2[0]/10, 
r1rho_prime[spin_index][0]/10, 4)
-            self.assertAlmostEqual(spin.r2[1]/10, 
r1rho_prime[spin_index][1]/10, 4)
+            self.assertAlmostEqual(spin.r2[r20_key1]/10, 
r1rho_prime[spin_index][0]/10, 4)
+            self.assertAlmostEqual(spin.r2[r20_key2]/10, 
r1rho_prime[spin_index][1]/10, 4)
             self.assertAlmostEqual(spin.dw, delta_omega[spin_index], 3)
             self.assertAlmostEqual(spin.kex/1000.0, kex/1000.0, 3)
 




Related Messages


Powered by MHonArc, Updated Wed Nov 27 10:20:02 2013