mailr7909 - /branches/spectral_errors/prompt/spectrum.py


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

Header


Content

Posted by edward on October 22, 2008 - 11:35:
Author: bugman
Date: Wed Oct 22 11:35:28 2008
New Revision: 7909

URL: http://svn.gna.org/viewcvs/relax?rev=7909&view=rev
Log:
Fix for the N arg check of the spectrum.integration_points() user function.


Modified:
    branches/spectral_errors/prompt/spectrum.py

Modified: branches/spectral_errors/prompt/spectrum.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/spectral_errors/prompt/spectrum.py?rev=7909&r1=7908&r2=7909&view=diff
==============================================================================
--- branches/spectral_errors/prompt/spectrum.py (original)
+++ branches/spectral_errors/prompt/spectrum.py Wed Oct 22 11:35:28 2008
@@ -25,7 +25,7 @@
 
 # relax module imports.
 import help
-from relax_errors import RelaxListIntError, RelaxNoneIntError, 
RelaxNoneIntListIntError, RelaxNoneStrError, RelaxNumError, RelaxStrError
+from relax_errors import RelaxIntError, RelaxListIntError, 
RelaxNoneIntError, RelaxNoneIntListIntError, RelaxNoneStrError, 
RelaxNumError, RelaxStrError
 from generic_fns import spectrum
 
 
@@ -271,8 +271,8 @@
             print text
 
         # The number of summed points.
-        if type(N) != float and type(N) != int:
-            raise RelaxNumError, ('number of summed points', N)
+        if type(N) != int:
+            raise RelaxIntError, ('number of summed points', N)
 
         # The spectrum identification string.
         if type(spectrum_id) != str:




Related Messages


Powered by MHonArc, Updated Wed Oct 22 11:40:02 2008