Author: bugman Date: Sat Jul 5 01:24:13 2008 New Revision: 6715 URL: http://svn.gna.org/viewcvs/relax?rev=6715&view=rev Log: Fixed the creation of the CONECT records. 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=6715&r1=6714&r2=6715&view=diff ============================================================================== --- branches/rdc_analysis/generic_fns/structure/internal.py (original) +++ branches/rdc_analysis/generic_fns/structure/internal.py Sat Jul 5 01:24:13 2008 @@ -865,7 +865,7 @@ print "Creating the CONECT records." connect_count = 0 - for i in xrange(len(struct.atom_names)): + for i in xrange(len(struct.atom_name)): # No bonded atoms, hence no CONECT record is required. if not len(struct.bonded[i]): continue @@ -879,11 +879,11 @@ for j in xrange(len(struct.bonded[i])): # End of the array, hence create the CONECT record in this iteration. if j == len(struct.bonded[i])-1: - flush = 1 + flush = True # Only four covalently bonded atoms allowed in one CONECT record. if bonded_index == 3: - flush = 1 + flush = True # Get the bonded atom index. bonded[bonded_index] = struct.bonded[i][j] @@ -900,7 +900,7 @@ connect_count = connect_count + 1 # Reset the flush flag, the bonded atom count, and the bonded atom names. - flush = 0 + flush = False bonded_index = 0 bonded = ['', '', '', '']