Author: bugman Date: Wed Mar 27 14:06:08 2013 New Revision: 19191 URL: http://svn.gna.org/viewcvs/relax?rev=19191&view=rev Log: Manually ported the prompt package changes of r8347 to the user_functions package. ..... r8347 | semor | 2009-01-08 21:18:09 +0100 (Thu, 08 Jan 2009) | 3 lines Changed paths: M /branches/relax_disp/prompt/relax_disp.py Made the cpmg_frq() function accept only None for the reference spectrum and corrected a typo. ..... Modified: branches/relax_disp/user_functions/relax_disp.py Modified: branches/relax_disp/user_functions/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/branches/relax_disp/user_functions/relax_disp.py?rev=19191&r1=19190&r2=19191&view=diff ============================================================================== --- branches/relax_disp/user_functions/relax_disp.py (original) +++ branches/relax_disp/user_functions/relax_disp.py Wed Mar 27 14:06:08 2013 @@ -85,12 +85,12 @@ ) # Description. uf.desc.append(Desc_container()) -uf.desc[-1].add_paragraph("This allows the CPMG pulse train frequency of a given spectrum to be set. If a value of 0 is set for frequency, then the spectrum will be treated as a reference spectrum.") +uf.desc[-1].add_paragraph("This allows the CPMG pulse train frequency of a given spectrum to be set. If None is given for frequency, then the spectrum will be treated as a reference spectrum.") # Prompt examples. uf.desc.append(Desc_container("Prompt examples")) uf.desc[-1].add_paragraph("To identify the reference spectrum called 'reference_spectrum', type one of:") -uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(0, 'reference_spectrum')") -uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(cpmg_frq=0, spectrum_id='reference_spectrum')") +uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(None, 'reference_spectrum')") +uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(cpmg_frq=None, spectrum_id='reference_spectrum')") uf.desc[-1].add_paragraph("To set a frequency of 200 Hz for the spectrum '200_Hz_spectrum', type one of:") uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(200, '200_Hz_spectrum')") uf.desc[-1].add_prompt("relax> relax_disp.cpmg_frq(cpmg_frq=200, spectrum_id='200_Hz_spectrum')")