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: