mailr23925 - in /branches/disp_spin_speed: lib/dispersion/ target_functions/ test_suite/unit_tests/_lib/_dispersion/


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

Header


Content

Posted by tlinnet on June 13, 2014 - 11:55:
Author: tlinnet
Date: Fri Jun 13 11:55:48 2014
New Revision: 23925

URL: http://svn.gna.org/viewcvs/relax?rev=23925&view=rev
Log:
Removed number of points, to be send to lib function of model M61b.

Number of points are not used anymore.

Fixed in target function.
Fixed in lib function.
Fixed in corresponding unit tests

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

Modified:
    branches/disp_spin_speed/lib/dispersion/m61b.py
    branches/disp_spin_speed/target_functions/relax_disp.py
    
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61b.py

Modified: branches/disp_spin_speed/lib/dispersion/m61b.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/lib/dispersion/m61b.py?rev=23925&r1=23924&r2=23925&view=diff
==============================================================================
--- branches/disp_spin_speed/lib/dispersion/m61b.py     (original)
+++ branches/disp_spin_speed/lib/dispersion/m61b.py     Fri Jun 13 11:55:48 
2014
@@ -63,7 +63,7 @@
 from numpy import abs, any, array, isfinite, min, sum
 from numpy.ma import fix_invalid, masked_where
 
-def r1rho_M61b(r1rho_prime=None, pA=None, dw=None, kex=None, 
spin_lock_fields2=None, back_calc=None, num_points=None):
+def r1rho_M61b(r1rho_prime=None, pA=None, dw=None, kex=None, 
spin_lock_fields2=None, back_calc=None):
     """Calculate the R1rho values for the M61 skew model.
 
     See the module docstring for details.
@@ -81,8 +81,6 @@
     @type spin_lock_fields2:    numpy float array of rank 
[NE][NS][[NM][NO][ND]
     @keyword back_calc:         The array for holding the back calculated 
R1rho values.  Each element corresponds to the combination of spin lock field.
     @type back_calc:            numpy float array of rank 
[NE][NS][[NM][NO][ND]
-    @keyword num_points:        The number of points on the dispersion 
curve, equal to the length of the spin_lock_fields and back_calc arguments.
-    @type num_points:           numpy int array of rank [NE][NS][[NM][NO][ND]
     """
 
     # Flag to tell if values should be replaced if numer is zero.

Modified: branches/disp_spin_speed/target_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/target_functions/relax_disp.py?rev=23925&r1=23924&r2=23925&view=diff
==============================================================================
--- branches/disp_spin_speed/target_functions/relax_disp.py     (original)
+++ branches/disp_spin_speed/target_functions/relax_disp.py     Fri Jun 13 
11:55:48 2014
@@ -1294,7 +1294,7 @@
         self.r20_struct[:] = multiply.outer( R20.reshape(self.NE, self.NS, 
self.NM), self.no_nd_struct )
 
         # Back calculate the R1rho values.
-        r1rho_M61b(r1rho_prime=self.r20_struct, pA=pA, dw=self.dw_struct, 
kex=kex, spin_lock_fields2=self.spin_lock_omega1_squared_a, 
back_calc=self.back_calc_a, num_points=self.num_disp_points_a)
+        r1rho_M61b(r1rho_prime=self.r20_struct, pA=pA, dw=self.dw_struct, 
kex=kex, spin_lock_fields2=self.spin_lock_omega1_squared_a, 
back_calc=self.back_calc_a)
 
         # Clean the data for all values, which is left over at the end of 
arrays.
         self.back_calc_a = self.back_calc_a*self.disp_struct

Modified: 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61b.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61b.py?rev=23925&r1=23924&r2=23925&view=diff
==============================================================================
--- 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61b.py  
      (original)
+++ 
branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61b.py  
      Fri Jun 13 11:55:48 2014
@@ -65,7 +65,7 @@
         a = ones([self.num_points])
 
         # Calculate the R1rho values.
-        R1rho = r1rho_M61b(r1rho_prime=self.r1rho_prime*a, pA=self.pA, 
dw=dw_frq*a, kex=self.kex, spin_lock_fields2=spin_lock_omega1_squared, 
back_calc=self.R1rho, num_points=self.num_points)
+        R1rho = r1rho_M61b(r1rho_prime=self.r1rho_prime*a, pA=self.pA, 
dw=dw_frq*a, kex=self.kex, spin_lock_fields2=spin_lock_omega1_squared, 
back_calc=self.R1rho)
 
 
         # Check all R1rho values.




Related Messages


Powered by MHonArc, Updated Fri Jun 13 12:20:02 2014