Author: bugman Date: Tue Aug 20 17:56:31 2013 New Revision: 20642 URL: http://svn.gna.org/viewcvs/relax?rev=20642&view=rev Log: More error message improvements for when peak intensity data cannot be found in a dispersion analysis. Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py Modified: branches/relax_disp/specific_analyses/relax_disp/disp_data.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/specific_analyses/relax_disp/disp_data.py?rev=20642&r1=20641&r2=20642&view=diff ============================================================================== --- branches/relax_disp/specific_analyses/relax_disp/disp_data.py (original) +++ branches/relax_disp/specific_analyses/relax_disp/disp_data.py Tue Aug 20 17:56:31 2013 @@ -219,7 +219,10 @@ # Check for missing IDs. if len(ids) == 0: - raise RelaxError("No intensity data could be found corresponding to the spectrometer frequency of %s MHz, dispersion point of %s and relaxation time of %s s." % (frq*1e-6, point, time)) + if point == None: + raise RelaxError("No reference intensity data could be found corresponding to the spectrometer frequency of %s MHz and relaxation time of %s s." % (frq*1e-6, time)) + else: + raise RelaxError("No intensity data could be found corresponding to the spectrometer frequency of %s MHz, dispersion point of %s and relaxation time of %s s." % (frq*1e-6, point, time)) # Return the IDs. return ids