Author: bugman Date: Sat Jul 5 00:53:42 2008 New Revision: 6707 URL: http://svn.gna.org/viewcvs/relax?rev=6707&view=rev Log: HETATM records with no residue info are now skipped in the HET record construction. 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=6707&r1=6706&r2=6707&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/structure/internal.py (original) +++ branches/rdc_analysis/generic_fns/structure/internal.py Sat Jul 5 00:53:42 2008 @@ -714,8 +714,8 @@ # Loop over the atomic data. for i in xrange(len(struct.atom_name)): - # Catch the HETATM records. - if struct.pdb_record[i] != 'HETATM': + # Skip non-HETATM records and HETATM records with no residue info. + if struct.pdb_record[i] != 'HETATM' or struct.res_name[i] == None: continue # If the residue is not already stored initialise a new het_data element.