Author: bugman Date: Mon Dec 1 16:23:58 2008 New Revision: 8086 URL: http://svn.gna.org/viewcvs/relax?rev=8086&view=rev Log: Modified the NOE return_grace_string() method to handle unknown data types, i.e. spectrum ids. Modified: branches/spectral_errors/specific_fns/noe.py Modified: branches/spectral_errors/specific_fns/noe.py URL: http://svn.gna.org/viewcvs/relax/branches/spectral_errors/specific_fns/noe.py?rev=8086&r1=8085&r2=8086&view=diff ============================================================================== --- branches/spectral_errors/specific_fns/noe.py (original) +++ branches/spectral_errors/specific_fns/noe.py Mon Dec 1 16:23:58 2008 @@ -217,18 +217,18 @@ # Reference intensity. if object_name == 'ref': - grace_string = 'Reference intensity' + return 'Reference intensity' # Saturated intensity. if object_name == 'sat': - grace_string = 'Saturated intensity' + return 'Saturated intensity' # NOE. if object_name == 'noe': - grace_string = '\\qNOE\\Q' - - # Return the Grace string. - return grace_string + return '\\qNOE\\Q' + + # Return the data type as the Grace string. + return data_type def return_units(self, stat_type):