mailr8102 - /1.3/specific_fns/relax_fit.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on December 03, 2008 - 14:27:
Author: bugman
Date: Wed Dec  3 14:27:06 2008
New Revision: 8102

URL: http://svn.gna.org/viewcvs/relax?rev=8102&view=rev
Log:
Fix for bug #12670 (https://gna.org/bugs/index.php?12670).

This bug was reported by Michael Funk (mifu att nmr dot mpibpc dot mpg dot 
de).

The problem was that the relaxation curve-fitting return_error() method was 
returning the global
cdp.sigma_I error structure - which does not exist for all error types - when 
it should have been
returning the spin specific error structure.


Modified:
    1.3/specific_fns/relax_fit.py

Modified: 1.3/specific_fns/relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/specific_fns/relax_fit.py?rev=8102&r1=8101&r2=8102&view=diff
==============================================================================
--- 1.3/specific_fns/relax_fit.py (original)
+++ 1.3/specific_fns/relax_fit.py Wed Dec  3 14:27:06 2008
@@ -883,7 +883,11 @@
         # Get the current data pipe.
         cdp = pipes.get_pipe()
 
-        return cdp.sigma_I
+        # Get the spin container.
+        spin = return_spin(spin_id)
+
+        # Return the error list.
+        return spin.intensity_err
 
 
     def return_data_name(self, name):




Related Messages


Powered by MHonArc, Updated Wed Dec 03 23:40:04 2008