On Thu, Jan 8, 2009 at 8:20 PM,  <[email protected]> wrote:
> 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("

this line should actually be:

            text = sys.ps3 + "relax_disp.cmpg_frq("

> +            text = text + "spectrum_id=" + `spectrum_id`
> +            text = text + ", frq=" + `frq` + ")"

These two args seem to be reversed?

> +            print text
> +
> +        # The frq argument.
> +        if type(frq) != int:
> +            raise RelaxIntError, ('frq', frq)

This test should be different.  It should check for the float type as
well and raise a RelaxNumError if a number (bin, int, or float) is not
given.

Regards,

Edward

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to