mailr20642 - /branches/relax_disp/specific_analyses/relax_disp/disp_data.py


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

Header


Content

Posted by edward on August 20, 2013 - 17:56:
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




Related Messages


Powered by MHonArc, Updated Tue Aug 20 18:20:02 2013