mailr20852 - /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 September 05, 2013 - 15:49:
Author: bugman
Date: Thu Sep  5 15:49:37 2013
New Revision: 20852

URL: http://svn.gna.org/viewcvs/relax?rev=20852&view=rev
Log:
The spectrum list GUI element can now handle the cdp.exp_type data structure 
not existing.


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=20852&r1=20851&r2=20852&view=diff
==============================================================================
--- branches/relax_disp/gui/components/spectrum.py (original)
+++ branches/relax_disp/gui/components/spectrum.py Thu Sep  5 15:49:37 2013
@@ -334,7 +334,7 @@
         self.element.InsertColumn(index, u("Experiment type"))
 
         # No data.
-        if not hasattr(cdp, 'spectrum_ids'):
+        if not hasattr(cdp, 'spectrum_ids') or not hasattr(cdp, 'exp_type'):
             return True
 
         # Set the values.




Related Messages


Powered by MHonArc, Updated Thu Sep 05 16:40:01 2013