Author: bugman Date: Thu Aug 12 17:02:55 2010 New Revision: 11500 URL: http://svn.gna.org/viewcvs/relax?rev=11500&view=rev Log: Added a check in the frame order grid search so that the inc list size matches the number of parameters. Modified: 1.3/specific_fns/frame_order.py Modified: 1.3/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/frame_order.py?rev=11500&r1=11499&r2=11500&view=diff ============================================================================== --- 1.3/specific_fns/frame_order.py (original) +++ 1.3/specific_fns/frame_order.py Thu Aug 12 17:02:55 2010 @@ -864,6 +864,10 @@ incs = [inc]*n else: incs = inc + + # Sanity check. + if len(incs) != n: + raise RelaxError("The size of the increment list %s does not match the number of parameters in %s." % (incs, cdp.params)) # Initialise the grid increments structures. lower_list = lower