mailr20779 - /branches/relax_disp/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 September 03, 2013 - 18:00:
Author: bugman
Date: Tue Sep  3 18:00:00 2013
New Revision: 20779

URL: http://svn.gna.org/viewcvs/relax?rev=20779&view=rev
Log:
Added the relax_disp.spin_lock_offset user function to the peak intensity 
wizard of the GUI.

This is only for R1rho-type data and allows off-resonance data to be analysed 
in the GUI.


Modified:
    branches/relax_disp/gui/wizards/peak_intensity.py

Modified: branches/relax_disp/gui/wizards/peak_intensity.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/wizards/peak_intensity.py?rev=20779&r1=20778&r2=20779&view=diff
==============================================================================
--- branches/relax_disp/gui/wizards/peak_intensity.py (original)
+++ branches/relax_disp/gui/wizards/peak_intensity.py Tue Sep  3 18:00:00 2013
@@ -62,7 +62,7 @@
         @type relax_fit:            bool
         @keyword relax_disp:        A flag which when True will enable the 
relaxation dispersion portions of the wizard.
         @type relax_disp:           bool
-        @keyword relax_disp_cpmg:   A flag which if True enables the 
relax_disp.cpmg_frq user function and if False enables the 
relax_disp.spin_lock_field user function.
+        @keyword relax_disp_cpmg:   A flag which if True enables the 
relax_disp.cpmg_frq user function and if False enables the 
relax_disp.spin_lock_field user function.  It also enables the 
relax_disp.spin_lock_offset user function if R1rho data is indicated.
         @type relax_disp_cpmg:      bool
         @keyword relax_disp_times:  A flag which if True will enable the 
relax_disp.relax_time page.
         @type relax_disp_times:     bool
@@ -161,8 +161,13 @@
             else:
                 # The relax_disp.spin_lock_field page.
                 page = 
uf_store['relax_disp.spin_lock_field'].create_page(self, sync=True)
-                self.page_indices['spin_lock_field'] = self.add_page(page, 
skip_button=False, proceed_on_error=False)
+                self.page_indices['spin_lock_field'] = self.add_page(page, 
skip_button=True, proceed_on_error=False)
                 page.on_init = self.wizard_update_relax_disp_spin_lock_field
+
+                # The relax_disp.spin_lock_offset page.
+                page = 
uf_store['relax_disp.spin_lock_offset'].create_page(self, sync=True)
+                self.page_indices['spin_lock_offset'] = self.add_page(page, 
skip_button=True, proceed_on_error=False)
+                page.on_init = self.wizard_update_relax_disp_spin_lock_offset
 
         # Reset the cursor.
         if wx.IsBusy():
@@ -313,6 +318,13 @@
 
         # Update the spectrum ID.
         self.wizard_update_ids(page_key='spin_lock_field')
+
+
+    def wizard_update_relax_disp_spin_lock_offset(self):
+        """Update the relax_disp.spin_lock_offset page based on previous 
data."""
+
+        # Update the spectrum ID.
+        self.wizard_update_ids(page_key='spin_lock_offset')
 
 
     def wizard_update_relax_fit_relax_time(self):




Related Messages


Powered by MHonArc, Updated Tue Sep 03 19:00:02 2013