mailr13751 - /branches/gui_testing/test_suite/gui_tests/rx.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:28:
Author: bugman
Date: Tue Jul 19 18:28:11 2011
New Revision: 13751

URL: http://svn.gna.org/viewcvs/relax?rev=13751&view=rev
Log:
Fix for the spin deselection in the R1 auto-analysis GUI test.

The deselection for this test should have been using the unresolved file 
rather than a list of
residues.


Modified:
    branches/gui_testing/test_suite/gui_tests/rx.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=13751&r1=13750&r2=13751&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:28:11 2011
@@ -83,6 +83,9 @@
 
     def test_r1_analysis(self):
         """Test the r1 analysis."""
+
+        # The path to the data files.
+        data_path = status.install_path + sep + 'test_suite' + sep + 
'shared_data' + sep + 'curve_fitting' + sep
 
         # Simulate the new analysis wizard.
         self.gui.analysis.menu_new(None)
@@ -119,19 +122,10 @@
         seq_read.spin_num_col.SetValue(int_to_gui(None))
         seq_read.on_execute()
 
-        # Unresolved spins.
-        deselect_spin = deselect.Spin_page(wizard, self.gui)
-        deselect_spin.spin_id.SetValue(str_to_gui(":3, 11, 18, 19, 23, 31, 
42, 44, 54, 66, 82, 92, 94, 99, 101, 113, 124, 126, 136, 141, 145, 147, 332, 
345, 346, 358, 361"))
-        deselect_spin.change_all.SetValue(bool_to_gui(False))
-        deselect_spin.on_execute()
-
         # Name the spins.
         page = spin.Name_page(wizard, self.gui)
         page.name.SetValue(str_to_gui('N'))
         page.on_execute()
-
-        # The path to the data files.
-        data_path = status.install_path + sep + 'test_suite' + sep + 
'shared_data' + sep + 'curve_fitting' + sep
 
         # Spectrum names.
         names = [
@@ -207,6 +201,17 @@
             # 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)
 




Related Messages


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