Author: semor Date: Thu Jan 8 20:43:42 2009 New Revision: 8346 URL: http://svn.gna.org/viewcvs/relax?rev=8346&view=rev Log: Corrected a few mistakes. These were spot by Ed in a post at: https://mail.gna.org/public/relax-devel/2009-01/msg00037.html (Message-id: <7f080ed10901081128v5b8fe1edu7f654fb2e87d7bd1@xxxxxxxxxxxxxx>) Modified: branches/relax_disp/prompt/relax_disp.py Modified: branches/relax_disp/prompt/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/prompt/relax_disp.py?rev=8346&r1=8345&r2=8346&view=diff ============================================================================== --- branches/relax_disp/prompt/relax_disp.py (original) +++ branches/relax_disp/prompt/relax_disp.py Thu Jan 8 20:43:42 2009 @@ -127,14 +127,14 @@ # Function intro text. if self.__relax__.interpreter.intro: - text = sys.ps3 + "cpmg_frq(" + text = sys.ps3 + "relax_disp.cpmg_frq(" + text = text + ", cpmg_frq=" + `cpmg_frq` + ")" text = text + "spectrum_id=" + `spectrum_id` - text = text + ", cpmg_frq=" + `cpmg_frq` + ")" print text # The cpmg_frq argument. - if type(cpmg_frq) != int: - raise RelaxIntError, ('cpmg_frq', cpmg_frq) + if type(cpmg_frq) != float and type(cpmg_frq) != int: + raise RelaxNumError, ('cpmg_frq', cpmg_frq) # The spectrum_id argument. if type(spectrum_id) != str: