mailr23463 - /branches/disp_speed/lib/dispersion/mmq_cr72.py


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

Header


Content

Posted by tlinnet on May 27, 2014 - 12:26:
Author: tlinnet
Date: Tue May 27 12:26:32 2014
New Revision: 23463

URL: http://svn.gna.org/viewcvs/relax?rev=23463&view=rev
Log:
Small fix for the math domain catching of model MMQ CR72.

This was pointed out in the post 
http://article.gmane.org/gmane.science.nmr.relax.devel/5940.
And in post http://article.gmane.org/gmane.science.nmr.relax.devel/5946.

Modified:
    branches/disp_speed/lib/dispersion/mmq_cr72.py

Modified: branches/disp_speed/lib/dispersion/mmq_cr72.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_speed/lib/dispersion/mmq_cr72.py?rev=23463&r1=23462&r2=23463&view=diff
==============================================================================
--- branches/disp_speed/lib/dispersion/mmq_cr72.py      (original)
+++ branches/disp_speed/lib/dispersion/mmq_cr72.py      Tue May 27 12:26:32 
2014
@@ -85,7 +85,7 @@
     """
 
     # Catch parameter values that will result in no exchange, returning flat 
R2eff = R20 lines (when kex = 0.0, k_AB = 0.0).
-    if dw == 0.0 or pA == 1.0 or k_AB == 0.0 or dwH == 0.0:
+    if (dw == 0.0 and dwH == 0.0) or pA == 1.0 or k_AB == 0.0:
         return array([r20]*num_points)
 
     # Repetitive calculations (to speed up calculations).




Related Messages


Powered by MHonArc, Updated Tue May 27 12:40:02 2014