Author: bugman Date: Thu Jan 29 19:34:32 2015 New Revision: 27375 URL: http://svn.gna.org/viewcvs/relax?rev=27375&view=rev Log: Another fix for the Internal_selection.count_atoms() internal structural object selection method. Modified: trunk/lib/structure/internal/selection.py Modified: trunk/lib/structure/internal/selection.py URL: http://svn.gna.org/viewcvs/relax/trunk/lib/structure/internal/selection.py?rev=27375&r1=27374&r2=27375&view=diff ============================================================================== --- trunk/lib/structure/internal/selection.py (original) +++ trunk/lib/structure/internal/selection.py Thu Jan 29 19:34:32 2015 @@ -75,8 +75,8 @@ # Sum the atoms of all molecules. sum = 0 - for mol_index in self._mol_indices: - sum += len(self._atom_indices[mol_index]) + for i in range(len(self._atom_indices)): + sum += len(self._atom_indices[i]) # Return the sum. return sum