Author: bugman Date: Mon Aug 11 11:53:42 2008 New Revision: 7134 URL: http://svn.gna.org/viewcvs/relax?rev=7134&view=rev Log: Allowed the temperature to be entered as a integer as well as a float. Modified: branches/rdc_analysis/prompt/temperature.py Modified: branches/rdc_analysis/prompt/temperature.py URL: http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/prompt/temperature.py?rev=7134&r1=7133&r2=7134&view=diff ============================================================================== --- branches/rdc_analysis/prompt/temperature.py (original) +++ branches/rdc_analysis/prompt/temperature.py Mon Aug 11 11:53:42 2008 @@ -28,7 +28,7 @@ # relax module imports. from generic_fns import temperature -from relax_errors import RelaxFloatError, RelaxNoneStrError +from relax_errors import RelaxNoneStrError, RelaxNumError class Temp: @@ -68,8 +68,8 @@ raise RelaxNoneStrError, ('experiment identification string', id) # The temperature. - if type(temp) != float: - raise RelaxFloatError, ('temp', temp) + if type(temp) != float and type(temp) != int: + raise RelaxNumError, ('temp', temp) # Execute the functional code. temperature.set(id=id, temp=temp)