mailr24647 - /branches/disp_spin_speed/lib/dispersion/dpl94.py


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

Header


Content

Posted by tlinnet on July 22, 2014 - 17:56:
Author: tlinnet
Date: Tue Jul 22 17:56:23 2014
New Revision: 24647

URL: http://svn.gna.org/viewcvs/relax?rev=24647&view=rev
Log:
Removed unnecessary repetitive calculation of kex**2 in model DPL94.

Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion 
models for Clustered analysis.

Modified:
    branches/disp_spin_speed/lib/dispersion/dpl94.py

Modified: branches/disp_spin_speed/lib/dispersion/dpl94.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/lib/dispersion/dpl94.py?rev=24647&r1=24646&r2=24647&view=diff
==============================================================================
--- branches/disp_spin_speed/lib/dispersion/dpl94.py    (original)
+++ branches/disp_spin_speed/lib/dispersion/dpl94.py    Tue Jul 22 17:56:23 
2014
@@ -94,9 +94,6 @@
     t_numer_zero = False
     t_denom_zero = False
 
-    # Repetitive calculations (to speed up calculations).
-    kex2 = kex**2
-
     # The non-Rex factors.
     sin_theta2 = sin(theta)**2
     R1_R2 = R1 * cos(theta)**2 + r1rho_prime * sin_theta2
@@ -111,7 +108,7 @@
         mask_numer_zero = masked_where(numer == 0.0, numer)
 
     # Denominator.
-    denom = kex2 + spin_lock_fields2
+    denom = kex**2 + spin_lock_fields2
 
     # Catch math domain error of dividing with 0.
     # This is when denom =0.




Related Messages


Powered by MHonArc, Updated Tue Jul 22 18:20:03 2014