mailr2648 - /1.2/generic_fns/sequence.py


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

Header


Content

Posted by edward on October 17, 2006 - 07:03:
Author: bugman
Date: Tue Oct 17 07:02:58 2006
New Revision: 2648

URL: http://svn.gna.org/viewcvs/relax?rev=2648&view=rev
Log:
A fix for the function which loads the sequence from the PDB file.

This fixes two tests of the test suite.  The changes already exist within the 
1.3 line.


Modified:
    1.2/generic_fns/sequence.py

Modified: 1.2/generic_fns/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/1.2/generic_fns/sequence.py?rev=2648&r1=2647&r2=2648&view=diff
==============================================================================
--- 1.2/generic_fns/sequence.py (original)
+++ 1.2/generic_fns/sequence.py Tue Oct 17 07:02:58 2006
@@ -143,10 +143,10 @@
         print "\nLoading the sequence from the PDB file.\n"
 
         # Reassign the sequence of the first structure.
-        if self.relax.data.pdb[self.run].structures[i].peptide_chains:
-            res = 
self.relax.data.pdb[self.run].structures[i].peptide_chains[0].residues
-        elif self.relax.data.pdb[self.run].structures[i].nucleotide_chains:
-            res = 
self.relax.data.pdb[self.run].structures[i].nucleotide_chains[0].residues
+        if self.relax.data.pdb[run].structures[0].peptide_chains:
+            res = 
self.relax.data.pdb[run].structures[0].peptide_chains[0].residues
+        elif self.relax.data.pdb[run].structures[0].nucleotide_chains:
+            res = 
self.relax.data.pdb[run].structures[0].nucleotide_chains[0].residues
         else:
             raise RelaxNoPdbChainError
 




Related Messages


Powered by MHonArc, Updated Tue Oct 17 07:20:05 2006