mailr19555 - /trunk/gui/wizards/peak_intensity.py


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

Header


Content

Posted by edward on April 21, 2013 - 18:48:
Author: bugman
Date: Sun Apr 21 18:48:39 2013
New Revision: 19555

URL: http://svn.gna.org/viewcvs/relax?rev=19555&view=rev
Log:
Simplified the wizard_update_noe_spectrum_type() method as in the previous 
commit.


Modified:
    trunk/gui/wizards/peak_intensity.py

Modified: trunk/gui/wizards/peak_intensity.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/gui/wizards/peak_intensity.py?rev=19555&r1=19554&r2=19555&view=diff
==============================================================================
--- trunk/gui/wizards/peak_intensity.py (original)
+++ trunk/gui/wizards/peak_intensity.py Sun Apr 21 18:48:39 2013
@@ -205,20 +205,6 @@
             return self._num_pages + 1
 
 
-    def wizard_update_noe_spectrum_type(self):
-        """Update the noe.spectrum_type page based on previous data."""
-
-        # The spectrum.read_intensities page.
-        page = self.get_page(self.page_indices['read'])
-
-        # Set the spectrum ID.
-        id = page.uf_args['spectrum_id'].GetValue()
-
-        # Set the ID in the noe.spectrum_type page.
-        page = self.get_page(self.page_indices['spectrum_type'])
-        page.uf_args['spectrum_id'].SetValue(id)
-
-
     def wizard_update_ids(self, page_key=None, arg_key='spectrum_id', 
index=None):
         """Update the spectrum ID on the page specified by the key based on 
previous data.
 
@@ -242,6 +228,13 @@
             page.uf_args[arg_key].SetValue(id)
         else:
             page.uf_args[arg_key].SetValue(value=id, index=index)
+
+
+    def wizard_update_noe_spectrum_type(self):
+        """Update the noe.spectrum_type page based on previous data."""
+
+        # Update the spectrum ID.
+        self.wizard_update_ids(page_key='spectrum_type')
 
 
     def wizard_update_pts(self):




Related Messages


Powered by MHonArc, Updated Sun Apr 21 19:00:02 2013