mailr27299 - /trunk/lib/structure/internal/object.py


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

Header


Content

Posted by edward on January 26, 2015 - 11:45:
Author: bugman
Date: Mon Jan 26 11:45:40 2015
New Revision: 27299

URL: http://svn.gna.org/viewcvs/relax?rev=27299&view=rev
Log:
Bug fix for the structure.read_pdb user function parsing of CONECT records.

CONECT records pointing to ATOM records were not being read by the user 
function.  As ATOM records
should not require CONECT records by their definition, this is only a minor 
problem affecting
synthetic edge cases.


Modified:
    trunk/lib/structure/internal/object.py

Modified: trunk/lib/structure/internal/object.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/object.py?rev=27299&r1=27298&r2=27299&view=diff
==============================================================================
--- trunk/lib/structure/internal/object.py      (original)
+++ trunk/lib/structure/internal/object.py      Mon Jan 26 11:45:40 2015
@@ -692,8 +692,8 @@
             if records[i][:6] == 'ENDMDL':
                 end = True
 
-            # A molecule termination record with no trailing HETATM.
-            elif i < len(records)-1 and records[i][:3] == 'TER' and not 
records[i+1][:6] == 'HETATM':
+            # A molecule termination record with no trailing HETATM or 
CONECT.
+            elif i < len(records)-1 and records[i][:3] == 'TER' and not 
records[i+1][:6] == 'HETATM' and not records[i+1][:6] == 'CONECT':
                 end = True
 
             # A HETATM followed by an ATOM record.




Related Messages


Powered by MHonArc, Updated Mon Jan 26 14:40:02 2015