mailr13753 - in /branches/gui_testing/test_suite: gui_tests/rx.py system_tests/relax_fit.py


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

Header


Content

Posted by edward on July 19, 2011 - 18:42:
Author: bugman
Date: Tue Jul 19 18:42:43 2011
New Revision: 13753

URL: http://svn.gna.org/viewcvs/relax?rev=13753&view=rev
Log:
Fixes for the R1 auto-analysis GUI and system tests for having spin 
deselection prior to error analysis.


Modified:
    branches/gui_testing/test_suite/gui_tests/rx.py
    branches/gui_testing/test_suite/system_tests/relax_fit.py

Modified: branches/gui_testing/test_suite/gui_tests/rx.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/gui_tests/rx.py?rev=13753&r1=13752&r2=13753&view=diff
==============================================================================
--- branches/gui_testing/test_suite/gui_tests/rx.py (original)
+++ branches/gui_testing/test_suite/gui_tests/rx.py Tue Jul 19 18:42:43 2011
@@ -45,9 +45,9 @@
 
         # Data.
         relax_times = [0.0176, 0.0176, 0.0352, 0.0704, 0.0704, 0.1056, 
0.1584, 0.1584, 0.1936, 0.1936]
-        chi2 = [None, None, None, 3.1727215308183405, 5.9732236976178248, 
17.633333237460601, 4.7413502242106036, 10.759950979457724, None, None, None, 
6.5520255580798752]
-        rx = [None, None, None, 8.0814894819861891, 8.6478971007171523, 
9.5710638143380482, 10.716551832690667, 11.143793929315777, None, None, None, 
12.828753698718391]
-        i0 = [None, None, None, 1996050.9679873895, 2068490.9458262245, 
1611556.5193290685, 1362887.2329727132, 1877670.5629299041, None, None, None, 
897044.17270784755]
+        chi2 = [None, None, None, 2.916952651567855, 5.4916923952919632, 
16.21182245065274, 4.3591263759462926, 9.8925377583244316, None, None, None, 
6.0238341559877782]
+        rx = [None, None, None, 8.0814894819820662, 8.6478971039559642, 
9.5710638183013845, 10.716551838066295, 11.143793935455122, None, None, None, 
12.82875370075309]
+        i0 = [None, None, None, 1996050.9679875025, 2068490.9458927638, 
1611556.5194095275, 1362887.2331948928, 1877670.5623875158, None, None, None, 
897044.17382064369]
 
         # Some checks.
         self.assertEqual(cdp.curve_type, 'exp')
@@ -58,9 +58,9 @@
             self.assertEqual(cdp_relax_times[i], relax_times[i])
 
         # Check the errors.
-        #for key in cdp.sigma_I:
-        #    self.assertEqual(cdp.sigma_I[key], 10142.707367087694)
-        #    self.assertEqual(cdp.var_I[key], 102874512.734375)
+        for key in cdp.sigma_I:
+            self.assertEqual(cdp.sigma_I[key], 10578.03948242143)
+            self.assertEqual(cdp.var_I[key], 111894919.29166666)
 
         # Spin data check.
         i = 0
@@ -121,6 +121,17 @@
         seq_read.spin_name_col.SetValue(int_to_gui(None))
         seq_read.spin_num_col.SetValue(int_to_gui(None))
         seq_read.on_execute()
+
+        # Unresolved spins.
+        deselect_read = deselect.Read_page(wizard, self.gui)
+        deselect_read.file.SetValue(str_to_gui(data_path + 'unresolved'))
+        deselect_read.mol_name_col.SetValue(int_to_gui(None))
+        deselect_read.res_name_col.SetValue(int_to_gui(None))
+        deselect_read.res_num_col.SetValue(int_to_gui(1))
+        deselect_read.spin_name_col.SetValue(int_to_gui(None))
+        deselect_read.spin_num_col.SetValue(int_to_gui(None))
+        deselect_read.change_all.SetValue(bool_to_gui(True))
+        deselect_read.on_execute()
 
         # Name the spins.
         page = spin.Name_page(wizard, self.gui)
@@ -201,17 +212,6 @@
             # Go to the next page (i.e. finish).
             analysis.wizard._go_next(None)
 
-        # Unresolved spins.
-        deselect_read = deselect.Read_page(wizard, self.gui)
-        deselect_read.file.SetValue(str_to_gui(data_path + 'unresolved'))
-        deselect_read.mol_name_col.SetValue(int_to_gui(None))
-        deselect_read.res_name_col.SetValue(int_to_gui(None))
-        deselect_read.res_num_col.SetValue(int_to_gui(1))
-        deselect_read.spin_name_col.SetValue(int_to_gui(None))
-        deselect_read.spin_num_col.SetValue(int_to_gui(None))
-        deselect_read.change_all.SetValue(bool_to_gui(True))
-        deselect_read.on_execute()
-
         # Set the number of MC sims.
         analysis.mc_sim_num.SetValue(3)
 

Modified: branches/gui_testing/test_suite/system_tests/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/test_suite/system_tests/relax_fit.py?rev=13753&r1=13752&r2=13753&view=diff
==============================================================================
--- branches/gui_testing/test_suite/system_tests/relax_fit.py (original)
+++ branches/gui_testing/test_suite/system_tests/relax_fit.py Tue Jul 19 
18:42:43 2011
@@ -52,9 +52,9 @@
 
         # Data.
         relax_times = [0.0176, 0.0176, 0.0352, 0.0704, 0.0704, 0.1056, 
0.1584, 0.1584, 0.1936, 0.1936]
-        chi2 = [None, None, None, 3.1727215308183405, 5.9732236976178248, 
17.633333237460601, 4.7413502242106036, 10.759950979457724, None, None, None, 
6.5520255580798752]
-        rx = [None, None, None, 8.0814894819861891, 8.6478971007171523, 
9.5710638143380482, 10.716551832690667, 11.143793929315777, None, None, None, 
12.828753698718391]
-        i0 = [None, None, None, 1996050.9679873895, 2068490.9458262245, 
1611556.5193290685, 1362887.2329727132, 1877670.5629299041, None, None, None, 
897044.17270784755]
+        chi2 = [None, None, None, 2.916952651567855, 5.4916923952919632, 
16.21182245065274, 4.3591263759462926, 9.8925377583244316, None, None, None, 
6.0238341559877782]
+        rx = [None, None, None, 8.0814894819820662, 8.6478971039559642, 
9.5710638183013845, 10.716551838066295, 11.143793935455122, None, None, None, 
12.82875370075309]
+        i0 = [None, None, None, 1996050.9679875025, 2068490.9458927638, 
1611556.5194095275, 1362887.2331948928, 1877670.5623875158, None, None, None, 
897044.17382064369]
 
         # Some checks.
         self.assertEqual(cdp.curve_type, 'exp')
@@ -66,8 +66,8 @@
 
         # Check the errors.
         for key in cdp.sigma_I:
-            self.assertEqual(cdp.sigma_I[key], 10142.707367087694)
-            self.assertEqual(cdp.var_I[key], 102874512.734375)
+            self.assertEqual(cdp.sigma_I[key], 10578.03948242143)
+            self.assertEqual(cdp.var_I[key], 111894919.29166666)
 
         # Spin data check.
         i = 0




Related Messages


Powered by MHonArc, Updated Tue Jul 19 19:00:02 2011