mailr19369 - /branches/relax_disp/target_functions/relax_disp.py


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

Header


Content

Posted by edward on April 04, 2013 - 17:17:
Author: bugman
Date: Thu Apr  4 17:17:57 2013
New Revision: 19369

URL: http://svn.gna.org/viewcvs/relax?rev=19369&view=rev
Log:
The relaxation dispersion func_exp_fit() target function now uses 
exponential_2param_neg().

This is from the lib.curve_fit.exponential module.


Modified:
    branches/relax_disp/target_functions/relax_disp.py

Modified: branches/relax_disp/target_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/target_functions/relax_disp.py?rev=19369&r1=19368&r2=19369&view=diff
==============================================================================
--- branches/relax_disp/target_functions/relax_disp.py (original)
+++ branches/relax_disp/target_functions/relax_disp.py Thu Apr  4 17:17:57 
2013
@@ -27,6 +27,7 @@
 from numpy import dot, float64, zeros
 
 # relax module imports.
+from lib.curve_fit.exponential import exponential_2param_neg
 from lib.dispersion.equations import fast_2site
 from lib.errors import RelaxError
 from target_functions.chi2 import chi2
@@ -125,7 +126,7 @@
                 i0 = params[index + 1]
 
                 # Back-calculate the points on the exponential curve.
-                exponential(rate=r2eff, i0=i0, x=self.relax_times, 
y=self.back_calc)
+                exponential_2param_neg(rate=r2eff, i0=i0, 
x=self.relax_times, y=self.back_calc)
 
                 # Calculate the chi-squared value for this curve.
                 chi2_sum += chi2(self.values[spin_index, exp_index], 
self.back_calc, self.errors[spin_index, exp_index])




Related Messages


Powered by MHonArc, Updated Thu Apr 04 17:40:01 2013