mailr6695 - /branches/rdc_analysis/generic_fns/structure/internal.py


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

Header


Content

Posted by edward on July 04, 2008 - 23:33:
Author: bugman
Date: Fri Jul  4 23:33:04 2008
New Revision: 6695

URL: http://svn.gna.org/viewcvs/relax?rev=6695&view=rev
Log:
Added a catch for empty atom columns in the CONECT record within 
__fill_object_from_pdb().


Modified:
    branches/rdc_analysis/generic_fns/structure/internal.py

Modified: branches/rdc_analysis/generic_fns/structure/internal.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/rdc_analysis/generic_fns/structure/internal.py?rev=6695&r1=6694&r2=6695&view=diff
==============================================================================
--- branches/rdc_analysis/generic_fns/structure/internal.py (original)
+++ branches/rdc_analysis/generic_fns/structure/internal.py Fri Jul  4 
23:33:04 2008
@@ -94,6 +94,11 @@
             if record[0] == 'CONECT':
                 # Loop over the atoms of the record.
                 for i in xrange(len(record)-2):
+                    # Skip if there is no record.
+                    if record[i+2] == None:
+                        continue
+
+                    # Make the connection.
                     self.atom_connect(index1=self.__atom_index(record[1], 
struct_index), index2=self.__atom_index(record[i+2], struct_index), 
struct_index=struct_index)
 
 




Related Messages


Powered by MHonArc, Updated Fri Jul 04 23:40:18 2008