mailr5248 - /1.3/prompt/jw_mapping.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by sebastien . morin . 1 on April 03, 2008 - 04:15:
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)




Related Messages


Powered by MHonArc, Updated Thu Apr 03 04:20:18 2008