Author: bugman Date: Sun Nov 5 10:50:26 2006 New Revision: 2754 URL: http://svn.gna.org/viewcvs/relax?rev=2754&view=rev Log: The structure 'het_data' was being accessed as a Numeric array when it was just an array of arrays. Modified: branches/tensor_pdb/generic_fns/pdb.py Modified: branches/tensor_pdb/generic_fns/pdb.py URL: http://svn.gna.org/viewcvs/relax/branches/tensor_pdb/generic_fns/pdb.py?rev=2754&r1=2753&r2=2754&view=diff ============================================================================== --- branches/tensor_pdb/generic_fns/pdb.py (original) +++ branches/tensor_pdb/generic_fns/pdb.py Sun Nov 5 10:50:26 2006 @@ -1077,8 +1077,8 @@ # If the residue is already stored, increment the number of HETATM records and go to the next atom. exists = 0 for i in xrange(len(het_data)): - if res_num == het_data[i, 2]: - het_data[i, 3] = het_data[i, 3] + 1 + if res_num == het_data[i][2]: + het_data[i][3] = het_data[i][3] + 1 exists = 1 if exists: continue