mailr3189 - /1.3/generic_fns/residue.py


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

Header


Content

Posted by edward on March 14, 2007 - 09:37:
Author: bugman
Date: Wed Mar 14 09:36:51 2007
New Revision: 3189

URL: http://svn.gna.org/viewcvs/relax?rev=3189&view=rev
Log:
Created the 'generic_fns.residue' module and started converting the sequence 
add() fn to create().


Added:
    1.3/generic_fns/residue.py
      - copied, changed from r3177, 1.3/generic_fns/sequence.py

Copied: 1.3/generic_fns/residue.py (from r3177, 1.3/generic_fns/sequence.py)
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/residue.py?p2=1.3/generic_fns/residue.py&p1=1.3/generic_fns/sequence.py&r1=3177&r2=3189&rev=3189&view=diff
==============================================================================
--- 1.3/generic_fns/sequence.py (original)
+++ 1.3/generic_fns/residue.py Wed Mar 14 09:36:51 2007
@@ -30,19 +30,15 @@
 
 
 
-class Sequence:
+class Residue:
     def __init__(self, relax):
         """Class containing functions specific to amino-acid sequence."""
 
         self.relax = relax
 
 
-    def add(self, run=None, res_num=None, res_name=None, select=1):
-        """Function for adding a residue onto the sequence."""
-
-        # Test if the run exists.
-        if not run in relax_data_store.run_names:
-            raise RelaxNoRunError, run
+    def create(self, res_num=None, res_name=None):
+        """Function for adding a residue into the relax data store."""
 
         # Initialise the sequence data if no sequence currently exists.
         if not relax_data_store.res.has_key(run):
@@ -63,7 +59,6 @@
         # Insert the data.
         relax_data_store.res[run][index].num = res_num
         relax_data_store.res[run][index].name = res_name
-        relax_data_store.res[run][index].select = select
 
 
     def copy(self, run1=None, run2=None):




Related Messages


Powered by MHonArc, Updated Wed Mar 14 09:40:08 2007