Author: semor Date: Thu Jan 8 20:20:15 2009 New Revision: 8344 URL: http://svn.gna.org/viewcvs/relax?rev=8344&view=rev Log: Added something in the user function cpmg_frq(). Yes, I had forgotten to put some code after the docstring..! 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=8344&r1=8343&r2=8344&view=diff ============================================================================== --- branches/relax_disp/prompt/relax_disp.py (original) +++ branches/relax_disp/prompt/relax_disp.py Thu Jan 8 20:20:15 2009 @@ -123,6 +123,25 @@ relax> relax_disp.cpmg_frq(200, '200_Hz_spectrum') relax> relax_disp.cpmg_frq(frq=200, spectrum_id='200_Hz_spectrum') + """ + + # Function intro text. + if self.__relax__.interpreter.intro: + text = sys.ps3 + "frq(" + text = text + "spectrum_id=" + `spectrum_id` + text = text + ", frq=" + `frq` + ")" + print text + + # The frq argument. + if type(frq) != int: + raise RelaxIntError, ('frq', frq) + + # The spectrum_id argument. + if type(spectrum_id) != str: + raise RelaxStrError, ('spectrum_id', spectrum_id) + + # Execute the functional code. + relax_disp_obj.cpmg_frq(frq=frq, spectrum_id=spectrum_id) def exp_type(self, exp='cpmg'):