mailr23350 - /branches/disp_speed/lib/dispersion/lm63.py


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

Header


Content

Posted by tlinnet on May 22, 2014 - 18:27:
Author: tlinnet
Date: Thu May 22 18:27:43 2014
New Revision: 23350

URL: http://svn.gna.org/viewcvs/relax?rev=23350&view=rev
Log:
Critical fix for the math domain catching of model LM63.

This was discovered with the added 7 unit tests demonstrating edge case 'no 
Rex' failures.

This follows from the ideas in the post 
http://article.gmane.org/gmane.science.nmr.relax.devel/5858.
This is related to: task #7793: (https://gna.org/task/?7793) Speed-up of 
dispersion models.

This is to implement catching of math domain errors, before they occur.

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

Modified: branches/disp_speed/lib/dispersion/lm63.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_speed/lib/dispersion/lm63.py?rev=23350&r1=23349&r2=23350&view=diff
==============================================================================
--- branches/disp_speed/lib/dispersion/lm63.py  (original)
+++ branches/disp_speed/lib/dispersion/lm63.py  Thu May 22 18:27:43 2014
@@ -87,7 +87,7 @@
 
     # Catch divide with zeros (to avoid pointless mathematical operations).
     if kex == 0.0:
-        return array([1e100]*num_points)
+        return array([r20]*num_points)
 
     # Catch zeros (to avoid pointless mathematical operations).
     # This will result in no exchange, returning flat lines.




Related Messages


Powered by MHonArc, Updated Thu May 22 18:40:02 2014