Author: tlinnet Date: Fri Jun 13 11:55:46 2014 New Revision: 23924 URL: http://svn.gna.org/viewcvs/relax?rev=23924&view=rev Log: Removed number of points, to be send to lib function of model M61. 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/m61.py branches/disp_spin_speed/target_functions/relax_disp.py branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61.py Modified: branches/disp_spin_speed/lib/dispersion/m61.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/lib/dispersion/m61.py?rev=23924&r1=23923&r2=23924&view=diff ============================================================================== --- branches/disp_spin_speed/lib/dispersion/m61.py (original) +++ branches/disp_spin_speed/lib/dispersion/m61.py Fri Jun 13 11:55:46 2014 @@ -67,7 +67,7 @@ from numpy import abs, any, array, isfinite, min, sum from numpy.ma import fix_invalid, masked_where -def r1rho_M61(r1rho_prime=None, phi_ex=None, kex=None, spin_lock_fields2=None, back_calc=None, num_points=None): +def r1rho_M61(r1rho_prime=None, phi_ex=None, kex=None, spin_lock_fields2=None, back_calc=None): """Calculate the R2eff values for the M61 model. See the module docstring for details. @@ -83,8 +83,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=23924&r1=23923&r2=23924&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:46 2014 @@ -1254,7 +1254,7 @@ self.r20_struct[:] = multiply.outer( R20.reshape(self.NE, self.NS, self.NM), self.no_nd_struct ) # Back calculate the R2eff values. - r1rho_M61(r1rho_prime=self.r20_struct, phi_ex=self.phi_ex_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_M61(r1rho_prime=self.r20_struct, phi_ex=self.phi_ex_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_m61.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61.py?rev=23924&r1=23923&r2=23924&view=diff ============================================================================== --- branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61.py (original) +++ branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_m61.py Fri Jun 13 11:55:46 2014 @@ -65,7 +65,7 @@ a = ones([self.num_points]) # Calculate the R1rho values. - r1rho_M61(r1rho_prime=self.r1rho_prime*a, phi_ex=phi_ex_scaled*a, kex=self.kex, spin_lock_fields2=spin_lock_omega1_squared, back_calc=self.R1rho, num_points=self.num_points) + r1rho_M61(r1rho_prime=self.r1rho_prime*a, phi_ex=phi_ex_scaled*a, kex=self.kex, spin_lock_fields2=spin_lock_omega1_squared, back_calc=self.R1rho) # Check all R1rho values. if self.kex > 1.e5: