Author: bugman Date: Sun Oct 12 12:42:09 2008 New Revision: 7640 URL: http://svn.gna.org/viewcvs/relax?rev=7640&view=rev Log: Fix for the determination of the global_stats flag in model_statistics(). Modified: 1.3/specific_fns/model_free/main.py Modified: 1.3/specific_fns/model_free/main.py URL: http://svn.gna.org/viewcvs/relax/1.3/specific_fns/model_free/main.py?rev=7640&r1=7639&r2=7640&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Sun Oct 12 12:42:09 2008 @@ -1820,16 +1820,15 @@ # Get the current data pipe. cdp = pipes.get_pipe() + # Determine the model type. + model_type = self.determine_model_type() + # Determine if local or global statistics will be returned. if global_stats == None: - global_stats = 1 - for spin in spin_loop(): - if hasattr(spin, 'chi2') and spin.chi2 != None: - global_stats = 0 - break - - # Determine the model type. - model_type = self.determine_model_type() + if model_type in ['mf', 'local_tm']: + global_stats = False + else: + global_stats = True # Statistics for a single residue. if not global_stats: