Author: bugman Date: Tue May 29 09:48:21 2012 New Revision: 16492 URL: http://svn.gna.org/viewcvs/relax?rev=16492&view=rev Log: Added the 'min_stats' flag to the specific API parameter list objects. This indicates if the minimisation statistics are part of the parameter set. This is a flag to the __init__() method, as it applies to the entire parameter list. Modified: branches/uf_redesign/specific_fns/api_objects.py Modified: branches/uf_redesign/specific_fns/api_objects.py URL: http://svn.gna.org/viewcvs/relax/branches/uf_redesign/specific_fns/api_objects.py?rev=16492&r1=16491&r2=16492&view=diff ============================================================================== --- branches/uf_redesign/specific_fns/api_objects.py (original) +++ branches/uf_redesign/specific_fns/api_objects.py Tue May 29 09:48:21 2012 @@ -33,8 +33,15 @@ class Param_list: """A special object for handling global and spin parameters.""" - def __init__(self): - """Set up the class.""" + def __init__(self, min_stats=False): + """Set up the class. + + @keyword min_stats: A flag which if True will include the parameters 'chi2', 'iter', 'f_count', 'g_count', 'h_count', 'warning' in the list. + @type min_stats: bool + """ + + # Store the flags. + self.min_stats = min_stats # Initialise the lists and dictionaries for the parameter info. self._names = []