mailr7573 - /1.3/prompt/value.py


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

Header


Content

Posted by edward on October 07, 2008 - 23:21:
Author: bugman
Date: Tue Oct  7 23:21:13 2008
New Revision: 7573

URL: http://svn.gna.org/viewcvs/relax?rev=7573&view=rev
Log:
Updated the value.write() user function interface to the new design.


Modified:
    1.3/prompt/value.py

Modified: 1.3/prompt/value.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/value.py?rev=7573&r1=7572&r2=7573&view=diff
==============================================================================
--- 1.3/prompt/value.py (original)
+++ 1.3/prompt/value.py Tue Oct  7 23:21:13 2008
@@ -423,7 +423,7 @@
         value.set(val=val, param=param, spin_id=spin_id)
 
 
-    def write(self, run=None, param=None, file=None, dir=None, force=False):
+    def write(self, param=None, file=None, dir=None, force=False):
         """Function for writing residue specific data values to a file.
 
         Keyword Arguments
@@ -451,34 +451,29 @@
         Examples
         ~~~~~~~~
 
-        To write the CSA values for the run 'm1' to the file 'csa.txt', type:
-
-        relax> value.write('m1', 'CSA', 'csa.txt')
-        relax> value.write(run='m1', param='CSA', file='csa.txt')
-
-
-        To write the NOE values from the run 'noe' to the file 'noe', type:
-
-        relax> value.write('noe', 'noe', 'noe.out')
-        relax> value.write('noe', param='noe', file='noe.out')
-        relax> value.write(run='noe', param='noe', file='noe.out')
-        relax> value.write(run='noe', param='noe', file='noe.out', 
force=True)
+        To write the CSA values to the file 'csa.txt', type one of:
+
+        relax> value.write('CSA', 'csa.txt')
+        relax> value.write(param='CSA', file='csa.txt')
+
+
+        To write the NOE values to the file 'noe', type:
+
+        relax> value.write('noe', 'noe.out')
+        relax> value.write(param='noe', file='noe.out')
+        relax> value.write(param='noe', file='noe.out')
+        relax> value.write(param='noe', file='noe.out', force=True)
         """
 
         # Function intro text.
         if self.__relax__.interpreter.intro:
             text = sys.ps3 + "value.write("
-            text = text + "run=" + `run`
-            text = text + ", param=" + `param`
+            text = text + "param=" + `param`
             text = text + ", file=" + `file`
             text = text + ", dir=" + `dir`
             text = text + ", force=" + `force` + ")"
             print text
 
-        # The run name.
-        if type(run) != str:
-            raise RelaxStrError, ('run', run)
-
         # The parameter.
         if type(param) != str:
             raise RelaxStrError, ('parameter', param)
@@ -496,7 +491,7 @@
             raise RelaxBoolError, ('force flag', force)
 
         # Execute the functional code.
-        self.__relax__.generic.value.write(run=run, param=param, file=file, 
dir=dir, force=force)
+        value.write(param=param, file=file, dir=dir, force=force)
 
 
     # Docstring modification.




Related Messages


Powered by MHonArc, Updated Tue Oct 07 23:40:02 2008