Author: tlinnet Date: Wed Jun 11 15:25:36 2014 New Revision: 23841 URL: http://svn.gna.org/viewcvs/relax?rev=23841&view=rev Log: Changes too unit tests, so data is sent to target function in numpy array format. Task #7807 (https://gna.org/task/index.php?7807): Speed-up of dispersion models for Clustered analysis. Modified: branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72.py Modified: branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72.py URL: http://svn.gna.org/viewcvs/relax/branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72.py?rev=23841&r1=23840&r2=23841&view=diff ============================================================================== --- branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72.py (original) +++ branches/disp_spin_speed/test_suite/unit_tests/_lib/_dispersion/test_cr72.py Wed Jun 11 15:25:36 2014 @@ -20,7 +20,7 @@ ############################################################################### # Python module imports. -from numpy import array, float64, int16, pi, zeros +from numpy import array, float64, int16, pi, ones, zeros from unittest import TestCase # relax module imports. @@ -57,8 +57,11 @@ # Parameter conversions. k_AB, k_BA, pB, dw_frq = self.param_conversion(pA=self.pA, kex=self.kex, dw=self.dw, sfrq=self.sfrq) + # Convert to array. + a = ones([self.num_points]) + # Calculate the R2eff values. - r2eff_CR72(r20a=self.r20a, r20b=self.r20b, pA=self.pA, dw=dw_frq, kex=self.kex, cpmg_frqs=self.cpmg_frqs, back_calc=self.R2eff, num_points=self.num_points) + r2eff_CR72(r20a=self.r20a*a, r20b=self.r20b*a, pA=self.pA, dw=dw_frq*a, kex=self.kex, cpmg_frqs=self.cpmg_frqs, back_calc=self.R2eff, num_points=self.num_points) # Check all R2eff values. for i in range(self.num_points): @@ -172,10 +175,10 @@ def test_cr72_no_rex8(self): - """Test the r2eff_cr72() function for no exchange when kex = 1e5.""" + """Test the r2eff_cr72() function for no exchange when kex = 1e8.""" # Parameter reset. - self.kex = 1e5 + self.kex = 1e8 # Calculate and check the R2eff values. self.calc_r2eff()