Author: bugman Date: Mon Aug 11 13:41:30 2008 New Revision: 7136 URL: http://svn.gna.org/viewcvs/relax?rev=7136&view=rev Log: Made the experimental id string compulsory. 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=7136&r1=7135&r2=7136&view=diff ============================================================================== --- branches/rdc_analysis/prompt/temperature.py (original) +++ branches/rdc_analysis/prompt/temperature.py Mon Aug 11 13:41:30 2008 @@ -28,7 +28,7 @@ # relax module imports. from generic_fns import temperature -from relax_errors import RelaxNoneStrError, RelaxNumError +from relax_errors import RelaxNumError, RelaxStrError class Temp: @@ -64,8 +64,8 @@ print text # Id string. - if id != None and type(id) != str: - raise RelaxNoneStrError, ('experiment identification string', id) + if type(id) != str: + raise RelaxStrError, ('experiment identification string', id) # The temperature. if type(temp) != float and type(temp) != int: