Author: bugman Date: Fri Jun 19 11:01:22 2009 New Revision: 9092 URL: http://svn.gna.org/viewcvs/relax?rev=9092&view=rev Log: Some fixed for the grid_search() method. Modified: branches/frame_order/specific_fns/frame_order.py Modified: branches/frame_order/specific_fns/frame_order.py URL: http://svn.gna.org/viewcvs/relax/branches/frame_order/specific_fns/frame_order.py?rev=9092&r1=9091&r2=9092&view=diff ============================================================================== --- branches/frame_order/specific_fns/frame_order.py (original) +++ branches/frame_order/specific_fns/frame_order.py Fri Jun 19 11:01:22 2009 @@ -22,6 +22,9 @@ # Module docstring. """Module for the specific methods of the Frame Order theories.""" + +# Python module imports. +from math import pi # relax module imports. from generic_fns import pipes @@ -64,7 +67,7 @@ @param inc: The increments for each dimension of the space for the grid search. The number of elements in the array must equal to the number of parameters in the model. - @type inc: array of int + @type inc: int or array of int @param constraints: If True, constraints are applied during the grid search (eliminating parts of the grid). If False, no constraints are used. @type constraints: bool @@ -82,6 +85,10 @@ # The number of parameters. n = len(cdp.params) + + # If inc is an int, convert it into an array of that value. + if type(inc) == int: + inc = [inc]*n # Initialise the grid_ops structure. grid_ops = []