mailr3390 - /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 November 03, 2007 - 18:36:
Author: bugman
Date: Sat Nov  3 18:36:21 2007
New Revision: 3390

URL: http://svn.gna.org/viewcvs/relax?rev=3390&view=rev
Log:
Alphabetical arrangement of the residue user functions.


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=3390&r1=3389&r2=3390&view=diff
==============================================================================
--- 1.3/prompt/residue.py (original)
+++ 1.3/prompt/residue.py Sat Nov  3 18:36:21 2007
@@ -42,6 +42,52 @@
 
         # Place relax in the class namespace.
         self.__relax__ = relax
+
+
+    def copy(self, run1=None, run2=None):
+        """Function for copying the sequence from run1 to run2.
+
+        Keyword Arguments
+        ~~~~~~~~~~~~~~~~~
+
+        run1:  The name of the run to copy the sequence from.
+
+        run2:  The name of the run to copy the sequence to.
+
+
+        Description
+        ~~~~~~~~~~~
+
+        This function will copy the sequence from 'run1' to 'run2'.  'run1' 
must contain sequence
+        information, while 'run2' must have no sequence loaded.
+
+
+        Examples
+        ~~~~~~~~
+
+        To copy the sequence from the run 'm1' to the run 'm2', type:
+
+        relax> sequence.copy('m1', 'm2')
+        relax> sequence.copy(run1='m1', run2='m2')
+        """
+
+        # Function intro text.
+        if self.__relax__.interpreter.intro:
+            text = sys.ps3 + "sequence.copy("
+            text = text + "run1=" + `run1`
+            text = text + ", run2=" + `run2` + ")"
+            print text
+
+        # The run1 argument.
+        if type(run1) != str:
+            raise RelaxStrError, ('run1', run1)
+
+        # The run2 argument.
+        if type(run2) != str:
+            raise RelaxStrError, ('run2', run2)
+
+        # Execute the functional code.
+        self.__relax__.generic.sequence.copy(run1=run1, run2=run2)
 
 
     def create(self, res_num=None, res_name=None):
@@ -93,52 +139,6 @@
 
         # Execute the functional code.
         residue.create(res_num=res_num, res_name=res_name)
-
-
-    def copy(self, run1=None, run2=None):
-        """Function for copying the sequence from run1 to run2.
-
-        Keyword Arguments
-        ~~~~~~~~~~~~~~~~~
-
-        run1:  The name of the run to copy the sequence from.
-
-        run2:  The name of the run to copy the sequence to.
-
-
-        Description
-        ~~~~~~~~~~~
-
-        This function will copy the sequence from 'run1' to 'run2'.  'run1' 
must contain sequence
-        information, while 'run2' must have no sequence loaded.
-
-
-        Examples
-        ~~~~~~~~
-
-        To copy the sequence from the run 'm1' to the run 'm2', type:
-
-        relax> sequence.copy('m1', 'm2')
-        relax> sequence.copy(run1='m1', run2='m2')
-        """
-
-        # Function intro text.
-        if self.__relax__.interpreter.intro:
-            text = sys.ps3 + "sequence.copy("
-            text = text + "run1=" + `run1`
-            text = text + ", run2=" + `run2` + ")"
-            print text
-
-        # The run1 argument.
-        if type(run1) != str:
-            raise RelaxStrError, ('run1', run1)
-
-        # The run2 argument.
-        if type(run2) != str:
-            raise RelaxStrError, ('run2', run2)
-
-        # Execute the functional code.
-        self.__relax__.generic.sequence.copy(run1=run1, run2=run2)
 
 
     def delete(self, res_id=None):




Related Messages


Powered by MHonArc, Updated Sat Nov 03 18:40:10 2007