[prev in list] [next in list] [prev in thread] [next in thread] 

List:       relax-devel
Subject:    Re: r5248 - /1.3/prompt/jw_mapping.py
From:       "Edward d'Auvergne" <edward.dauvergne () domain ! hid>
Date:       2008-04-03 15:43:38
Message-ID: 7f080ed10804030843v7559223cjd3aefe9a8034b519 () domain ! hid
[Download RAW message or body]

These are 100% exactly the same changes I would make for the shift to
the new design!

Thanks,

Edward


On Thu, Apr 3, 2008 at 4:15 AM,  <sebastien.morin.1@domain.hid> wrote:
> Author: semor
>  Date: Thu Apr  3 04:15:20 2008
>  New Revision: 5248
>
>  URL: http://svn.gna.org/viewcvs/relax?rev=5248&view=rev
>  Log:
>  Removed the run argument to prepare the jw_mapping code for the new design.
>
>
>  Modified:
>     1.3/prompt/jw_mapping.py
>
>  Modified: 1.3/prompt/jw_mapping.py
>  URL: http://svn.gna.org/viewcvs/relax/1.3/prompt/jw_mapping.py?rev=5248&r1=5247&r2=5248&view=diff
>  ==============================================================================
>  --- 1.3/prompt/jw_mapping.py (original)
>  +++ 1.3/prompt/jw_mapping.py Thu Apr  3 04:15:20 2008
>  @@ -41,13 +41,11 @@
>          self.__relax__ = relax
>
>
>  -    def set_frq(self, run=None, frq=None):
>  +    def set_frq(self, frq=None):
>          """Function for selecting which relaxation data to use in the J(w) mapping.
>
>          Keyword Arguments
>          ~~~~~~~~~~~~~~~~~
>  -
>  -        run:  The name of the run.
>
>          frq:  The spectrometer frequency in Hz.
>
>  @@ -62,24 +60,19 @@
>          Examples
>          ~~~~~~~~
>
>  -        relax> jw_mapping.set_frq('jw', 600.0 * 1e6)
>  -        relax> jw_mapping.set_frq(run='jw', frq=600.0 * 1e6)
>  +        relax> jw_mapping.set_frq(600.0 * 1e6)
>  +        relax> jw_mapping.set_frq(frq=600.0 * 1e6)
>          """
>
>          # Function intro text.
>          if self.__relax__.interpreter.intro:
>              text = sys.ps3 + "jw_mapping.set_frq("
>  -            text = text + "run=" + `run`
>  -            text = text + ", frq=" + `frq` + ")"
>  +            text = text + "frq=" + `frq` + ")"
>              print text
>  -
>  -        # The run argument.
>  -        if type(run) != str:
>  -            raise RelaxStrError, ('run', run)
>
>          # The frq argument.
>          if type(frq) != float:
>              raise RelaxStrError, ('frq', frq)
>
>          # Execute the functional code.
>  -        self.__relax__.specific.jw_mapping.set_frq(run=run, frq=frq)
>  +        jw_mapping_obj.set_frq(frq=frq)
>
>
>  _______________________________________________
>  relax (http://nmr-relax.com)
>
>  This is the relax-commits mailing list
>  relax-commits@domain.hid
>
>  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-commits
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic