Author: bugman Date: Thu Jan 15 17:15:59 2009 New Revision: 8480 URL: http://svn.gna.org/viewcvs/relax?rev=8480&view=rev Log: Bug fix for the new validate() method. Modified: branches/multi_structure/generic_fns/structure/api_base.py Modified: branches/multi_structure/generic_fns/structure/api_base.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8480&r1=8479&r2=8480&view=diff ============================================================================== --- branches/multi_structure/generic_fns/structure/api_base.py (original) +++ branches/multi_structure/generic_fns/structure/api_base.py Thu Jan 15 17:15:59 2009 @@ -692,7 +692,7 @@ num_mols = len(self.structural_data[0].mol) # Loop over all other models. - for i in range(1, len(self.structural_data)+1): + for i in range(1, len(self.structural_data)): if num_mols != len(self.structural_data[i].mol): raise RelaxError, "The structural object is not valid - the number of molecules is not the same for all models."