mailr3211 - /1.3/prompt/residue.py


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

Header


Content

Posted by edward on March 17, 2007 - 02:48:
Author: bugman
Date: Sat Mar 17 02:48:15 2007
New Revision: 3211

URL: http://svn.gna.org/viewcvs/relax?rev=3211&view=rev
Log:
Updated the residue.delete() user function prompt code.

The code was still that of sequence.delete()!


Modified:
    1.3/prompt/residue.py

Modified: 1.3/prompt/residue.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/prompt/residue.py?rev=3211&r1=3210&r2=3211&view=diff
==============================================================================
--- 1.3/prompt/residue.py (original)
+++ 1.3/prompt/residue.py Sat Mar 17 02:48:15 2007
@@ -139,34 +139,33 @@
         self.__relax__.generic.sequence.copy(run1=run1, run2=run2)
 
 
-    def delete(self, run=None):
-        """Function for deleting the sequence.
-
-        Keyword Arguments
-        ~~~~~~~~~~~~~~~~~
-
-        run:  The name of the run.
-
-
-        Description
-        ~~~~~~~~~~~
-
-        This function has the same effect as using the 'delete' function to 
delete all residue
-        specific data.
-        """
-
-        # Function intro text.
-        if self.__relax__.interpreter.intro:
-            text = sys.ps3 + "sequence.delete("
-            text = text + "run=" + `run` + ")"
-            print text
-
-        # The run argument.
-        if type(run) != str:
-            raise RelaxStrError, ('run', run)
-
-        # Execute the functional code.
-        self.__relax__.generic.sequence.delete(run=run)
+    def delete(self, res_id=None):
+        """Function for deleting residues.
+
+        Keyword Arguments
+        ~~~~~~~~~~~~~~~~~
+
+        res_id:  The residue identifier string.
+
+
+        Description
+        ~~~~~~~~~~~
+
+        This function can be used to delete a single or sets of residues.
+        """
+
+        # Function intro text.
+        if self.__relax__.interpreter.intro:
+            text = sys.ps3 + "residue.delete("
+            text = text + "res_id=" + `res_id` + ")"
+            print text
+
+        # The residue identifier argument.
+        if type(res_id) != str:
+            raise RelaxStrError, ('residue identifier', res_id)
+
+        # Execute the functional code.
+        residue.delete(res_id=res_id)
 
 
     def display(self, run=None):




Related Messages


Powered by MHonArc, Updated Sat Mar 17 03:00:07 2007