mailr13684 - /branches/gui_testing/gui/analyses/auto_noe.py


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

Header


Content

Posted by edward on July 18, 2011 - 14:05:
Author: bugman
Date: Mon Jul 18 14:05:35 2011
New Revision: 13684

URL: http://svn.gna.org/viewcvs/relax?rev=13684&view=rev
Log:
The spectrum ID string is now set in all pages to that of the firs thn the 
NOE peak intensity wizard.


Modified:
    branches/gui_testing/gui/analyses/auto_noe.py

Modified: branches/gui_testing/gui/analyses/auto_noe.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/auto_noe.py?rev=13684&r1=13683&r2=13684&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/auto_noe.py (original)
+++ branches/gui_testing/gui/analyses/auto_noe.py Mon Jul 18 14:05:35 2011
@@ -353,19 +353,23 @@
         page = Replicated_page(self.wizard, self.gui)
         self.page_indices['repl'] = self.wizard.add_page(page, 
skip_button=True)
         self.wizard.set_seq_next_fn(self.page_indices['repl'], 
self.wizard_page_after_repl)
+        page.on_display_post = self.wizard_update_repl
 
         # The spectrum.baseplane_rmsd page.
         page = Baseplane_rmsd_page(self.wizard, self.gui)
         self.page_indices['rmsd'] = self.wizard.add_page(page, 
skip_button=True)
         self.wizard.set_seq_next_fn(self.page_indices['rmsd'], 
self.wizard_page_after_rmsd)
+        page.on_display_post = self.wizard_update_rmsd
 
         # The spectrum.integration_points page.
         page = Integration_points_page(self.wizard, self.gui)
         self.page_indices['pts'] = self.wizard.add_page(page, 
skip_button=True)
+        page.on_display_post = self.wizard_update_pts
 
         # The noe.spectrum_type page.
         page = Spectrum_type_page(self.wizard, self.gui)
         self.page_indices['spectrum_type'] = self.wizard.add_page(page, 
skip_button=True)
+        page.on_display_post = self.wizard_update_spectrum_type
 
         # Reset the cursor.
         wx.EndBusyCursor()
@@ -468,6 +472,62 @@
         # Skip to the noe.spectrum_type page.
         else:
             return self.page_indices['spectrum_type']
+
+
+    def wizard_update_pts(self):
+        """Update the spectrum.replicated page based on previous data."""
+
+        # The spectrum.read_intensities page.
+        page = self.wizard.get_page(self.page_indices['read'])
+
+        # Set the spectrum ID.
+        id = page.spectrum_id.GetValue()
+
+        # Set the ID in the spectrum.replicated page.
+        page = self.wizard.get_page(self.page_indices['pts'])
+        page.spectrum_id1.SetValue(id)
+
+
+    def wizard_update_repl(self):
+        """Update the spectrum.replicated page based on previous data."""
+
+        # The spectrum.read_intensities page.
+        page = self.wizard.get_page(self.page_indices['read'])
+
+        # Set the spectrum ID.
+        id = page.spectrum_id.GetValue()
+
+        # Set the ID in the spectrum.replicated page.
+        page = self.wizard.get_page(self.page_indices['repl'])
+        page.spectrum_id1.SetValue(id)
+
+
+    def wizard_update_rmsd(self):
+        """Update the spectrum.baseplane_rmsd page based on previous data."""
+
+        # The spectrum.read_intensities page.
+        page = self.wizard.get_page(self.page_indices['read'])
+
+        # Set the spectrum ID.
+        id = page.spectrum_id.GetValue()
+
+        # Set the ID in the spectrum.baseplane_rmsd page.
+        page = self.wizard.get_page(self.page_indices['rmsd'])
+        page.spectrum_id.SetValue(id)
+
+
+    def wizard_update_spectrum_type(self):
+        """Update the noe.spectrum_type page based on previous data."""
+
+        # The spectrum.read_intensities page.
+        page = self.wizard.get_page(self.page_indices['read'])
+
+        # Set the spectrum ID.
+        id = page.spectrum_id.GetValue()
+
+        # Set the ID in the spectrum.baseplane_rmsd page.
+        page = self.wizard.get_page(self.page_indices['spectrum_type'])
+        page.spectrum_id.SetValue(id)
 
 
 




Related Messages


Powered by MHonArc, Updated Mon Jul 18 14:20:02 2011