Author: bugman Date: Fri Sep 12 14:25:11 2014 New Revision: 25789 URL: http://svn.gna.org/viewcvs/relax?rev=25789&view=rev Log: Fix for the pipe_control.error_analysis.covariance_matrix() function. The set_errors() API method is parameter specific, so a loop over the parameters using the get_param_names() API method has been added. Modified: trunk/pipe_control/error_analysis.py Modified: trunk/pipe_control/error_analysis.py URL: http://svn.gna.org/viewcvs/relax/trunk/pipe_control/error_analysis.py?rev=25789&r1=25788&r2=25789&view=diff ============================================================================== --- trunk/pipe_control/error_analysis.py (original) +++ trunk/pipe_control/error_analysis.py Fri Sep 12 14:25:11 2014 @@ -62,8 +62,14 @@ # To compute one standard deviation errors on the parameters, take the square root of the diagonal covariance. sd = sqrt(diag(pcov)) - # Set the parameter error. - api.set_error(0, sd, model_info=model_info) + # Loop over the parameters. + index = 0 + for name in api.get_param_names(): + # Set the parameter error. + api.set_error(index, sd[index], model_info=model_info) + + # Increment the parameter index. + index = index + 1 def monte_carlo_create_data(method=None):