mailr21520 - /branches/relax_disp/lib/dispersion/mmq_2site.py


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

Header


Content

Posted by edward on November 19, 2013 - 14:02:
Author: bugman
Date: Tue Nov 19 14:02:03 2013
New Revision: 21520

URL: http://svn.gna.org/viewcvs/relax?rev=21520&view=rev
Log:
Reintroduced the F vector into r2eff_mmq_2site_mq() to calculate the 
magnetisation.


Modified:
    branches/relax_disp/lib/dispersion/mmq_2site.py

Modified: branches/relax_disp/lib/dispersion/mmq_2site.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/relax_disp/lib/dispersion/mmq_2site.py?rev=21520&r1=21519&r2=21520&view=diff
==============================================================================
--- branches/relax_disp/lib/dispersion/mmq_2site.py (original)
+++ branches/relax_disp/lib/dispersion/mmq_2site.py Tue Nov 19 14:02:03 2013
@@ -62,7 +62,7 @@
     matrix[1, 1] = -k_BA + 1.j*dw - R20B
 
 
-def r2eff_mmq_2site_mq(M0=None, m1=None, m2=None, R20A=None, R20B=None, 
pA=None, pB=None, dw=None, dwH=None, k_AB=None, k_BA=None, inv_tcpmg=None, 
tcp=None, back_calc=None, num_points=None, power=None, n=None):
+def r2eff_mmq_2site_mq(M0=None, F_vector=array([1, 0], float64), m1=None, 
m2=None, R20A=None, R20B=None, pA=None, pB=None, dw=None, dwH=None, 
k_AB=None, k_BA=None, inv_tcpmg=None, tcp=None, back_calc=None, 
num_points=None, power=None, n=None):
     """The 2-site numerical solution to the Bloch-McConnell equation for MQ 
data.
 
     The notation used here comes from:
@@ -179,8 +179,8 @@
         # The next lines calculate the R2eff using a two-point 
approximation, i.e. assuming that the decay is mono-exponential.
         A_B = dot(A, B)
         C_D = dot(C, D)
-        Mx = (A_B[0, 0] + C_D[0, 0])*M0[0] + (A_B[0, 1] + C_D[0, 1])*M0[1]
-        Mx = Mx.real
+        Mx = dot(dot(F_vector, (A_B + C_D)), M0)
+        Mx = Mx.real / 2.0
         if Mx <= 0.0 or isNaN(Mx):
             back_calc[i] = 1e99
         else:




Related Messages


Powered by MHonArc, Updated Tue Nov 19 14:20:02 2013