mailr2614 - /1.3/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 12, 2006 - 05:23:
Author: bugman
Date: Thu Oct 12 05:23:22 2006
New Revision: 2614

URL: http://svn.gna.org/viewcvs/relax?rev=2614&view=rev
Log:
Ported r2612 from the 1.2 line.

The command used was:
$ svn merge -r2611:2612 svn+ssh://bugman@xxxxxxxxxxx/svn/relax/1.2

This completes the fixing of bug #7241 (https://gna.org/bugs/?7241).


Modified:
    1.3/generic_fns/sequence.py

Modified: 1.3/generic_fns/sequence.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/generic_fns/sequence.py?rev=2614&r1=2613&r2=2614&view=diff
==============================================================================
--- 1.3/generic_fns/sequence.py (original)
+++ 1.3/generic_fns/sequence.py Thu Oct 12 05:23:22 2006
@@ -143,7 +143,12 @@
         print "\nLoading the sequence from the PDB file.\n"
 
         # Reassign the sequence of the first structure.
-        res = 
self.relax.data.pdb[run].structures[0].peptide_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
 
         # Add the run to 'self.relax.data.res'.
         self.relax.data.res.add_list(run)




Related Messages


Powered by MHonArc, Updated Thu Oct 12 05:40:05 2006