mailr23761 - /branches/disp_spin_speed/target_functions/relax_disp.py


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

Header


Content

Posted by tlinnet on June 10, 2014 - 01:01:
Author: tlinnet
Date: Tue Jun 10 01:01:51 2014
New Revision: 23761

URL: http://svn.gna.org/viewcvs/relax?rev=23761&view=rev
Log:
Removed dw_frq_a numpy array, as it was not necessary.

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

Modified:
    branches/disp_spin_speed/target_functions/relax_disp.py

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=23761&r1=23760&r2=23761&view=diff
==============================================================================
--- branches/disp_spin_speed/target_functions/relax_disp.py     (original)
+++ branches/disp_spin_speed/target_functions/relax_disp.py     Tue Jun 10 
01:01:51 2014
@@ -419,7 +419,6 @@
             # The number of disp point can change per spectrometer, so we 
make the maximum size.
             self.R20A_a = deepcopy(self.ones_a)
             self.R20B_a = deepcopy(self.ones_a)
-            self.dw_frq_a = deepcopy(self.ones_a)
             self.cpmg_frqs_a = deepcopy(self.ones_a)
             self.num_disp_points_a = deepcopy(self.ones_a)
             self.back_calc_a = deepcopy(self.ones_a)
@@ -429,7 +428,6 @@
             self.frqs_a = deepcopy(self.zeros_a)
             self.spins_a = deepcopy(self.zeros_a)
             self.not_spins_a = deepcopy(self.ones_a)
-
 
             # Loop over the experiment types.
             for ei in range(self.num_exp):
@@ -544,7 +542,7 @@
         dw_axis = np.tile(dw_axis, (self.numpy_array_shape[0], 
self.numpy_array_shape[2],self.numpy_array_shape[3], 
self.numpy_array_shape[4]))
 
         # Convert dw from ppm to rad/s.
-        self.dw_frq_a = dw_axis*self.spins_a*self.frqs_a
+        dw_frq_a = dw_axis*self.spins_a*self.frqs_a
 
         # Calculate pA and kex per frequency.
         pA_arr = pA*self.spins_a
@@ -565,7 +563,7 @@
                 self.R20B_a[0][si][mi][0][:num_disp_points]  = array( 
[R20B[r20_index]] * num_disp_points, float64)
 
         ## Back calculate the R2eff values.
-        r2eff_CR72(r20a=self.R20A_a, r20b=self.R20B_a, pA=pA_arr, 
dw=self.dw_frq_a, kex=kex_arr, cpmg_frqs=self.cpmg_frqs_a, 
back_calc=self.back_calc_a, num_points=self.num_disp_points_a)
+        r2eff_CR72(r20a=self.R20A_a, r20b=self.R20B_a, pA=pA_arr, 
dw=dw_frq_a, kex=kex_arr, cpmg_frqs=self.cpmg_frqs_a, 
back_calc=self.back_calc_a, num_points=self.num_disp_points_a)
 
         ## For all missing data points, set the back-calculated value to the 
measured values so that it has no effect on the chi-squared value.
         if self.has_missing:




Related Messages


Powered by MHonArc, Updated Tue Jun 10 01:20:02 2014