mailr15197 - /branches/spec_api/specific_fns/api_common.py


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

Header


Content

Posted by edward on January 19, 2012 - 18:06:
Author: bugman
Date: Thu Jan 19 18:06:36 2012
New Revision: 15197

URL: http://svn.gna.org/viewcvs/relax?rev=15197&view=rev
Log:
Fix for the specific API common method _return_value_general() for when 
spectrum IDs are not present.

Not sure why this change is necessary!  This could introduce future bugs, or 
hide a new bug!


Modified:
    branches/spec_api/specific_fns/api_common.py

Modified: branches/spec_api/specific_fns/api_common.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spec_api/specific_fns/api_common.py?rev=15197&r1=15196&r2=15197&view=diff
==============================================================================
--- branches/spec_api/specific_fns/api_common.py (original)
+++ branches/spec_api/specific_fns/api_common.py Thu Jan 19 18:06:36 2012
@@ -429,7 +429,7 @@
         # The data type does not exist.
         else:
             # Is it a spectrum id?
-            if param in cdp.spectrum_ids:
+            if hasattr(cdp, 'spectrum_ids') and param in cdp.spectrum_ids:
                 object_name = 'intensities'
                 object_error = 'intensity_err'
                 object_sim = 'intensity_sim'




Related Messages


Powered by MHonArc, Updated Fri Jan 20 11:40:02 2012