mailr21215 - /branches/relax_disp/gui/components/spectrum.py


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

Header


Content

Posted by edward on October 22, 2013 - 18:58:
Author: bugman
Date: Tue Oct 22 18:58:57 2013
New Revision: 21215

URL: http://svn.gna.org/viewcvs/relax?rev=21215&view=rev
Log:
Fix for the display of the spin-lock nu1 values in the dispersion GUI tab.

This was reported by Troels at 
http://thread.gmane.org/gmane.science.nmr.relax.devel/4708.

The GUI spectrum element at gui.components.spectrum was at fault, the 
add_disp_point() method was buggy.


Modified:
    branches/relax_disp/gui/components/spectrum.py

Modified: branches/relax_disp/gui/components/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/gui/components/spectrum.py?rev=21215&r1=21214&r2=21215&view=diff
==============================================================================
--- branches/relax_disp/gui/components/spectrum.py (original)
+++ branches/relax_disp/gui/components/spectrum.py Tue Oct 22 18:58:57 2013
@@ -352,7 +352,7 @@
                 self.element.SetStringItem(i, index, 
float_to_gui(cdp.cpmg_frqs[cdp.spectrum_ids[i]]))
 
             # Set the spin-lock field strength.
-            if hasattr(cdp, 'spin_lock_nu1') and cdp.spectrum_ids[i] not in 
cdp.spin_lock_nu1.keys():
+            if hasattr(cdp, 'spin_lock_nu1') and cdp.spectrum_ids[i] in 
cdp.spin_lock_nu1.keys():
                 self.element.SetStringItem(i, index, 
float_to_gui(cdp.spin_lock_nu1[cdp.spectrum_ids[i]]))
 
         # Successful.




Related Messages


Powered by MHonArc, Updated Tue Oct 22 19:20:01 2013