Author: bugman Date: Sun Oct 5 20:51:19 2008 New Revision: 7523 URL: http://svn.gna.org/viewcvs/relax?rev=7523&view=rev Log: Fix for bug #12412 (https://gna.org/bugs/index.php?12412). Caught the situation of when the global chi-squared value is missing when performing global model model selection. This now throws a RelaxError explaining the situation. 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=7523&r1=7522&r2=7523&view=diff ============================================================================== --- 1.3/specific_fns/model_free/main.py (original) +++ 1.3/specific_fns/model_free/main.py Sun Oct 5 20:51:19 2008 @@ -1839,6 +1839,8 @@ # The chi2 value. if model_type != 'local_tm': + if not hasattr(cdp, 'chi2'): + raise RelaxError, "Global statistics are not available, most likely because the global model has not been optimised." chi2 = cdp.chi2 # Return the data.