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.
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits