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):


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to