mailr23764 - /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:57 2014
New Revision: 23764

URL: http://svn.gna.org/viewcvs/relax?rev=23764&view=rev
Log:
Made the back_calc array be initiated as copy of the values array.

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=23764&r1=23763&r2=23764&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:57 2014
@@ -419,7 +419,6 @@
             # The number of disp point can change per spectrometer, so we 
make the maximum size.
             self.values_a = deepcopy(self.ones_a)
             self.errors_a = deepcopy(self.ones_a)
-            self.back_calc_a = deepcopy(self.ones_a)
             
             self.cpmg_frqs_a = deepcopy(self.ones_a)
             self.num_disp_points_a = deepcopy(self.ones_a)
@@ -458,6 +457,9 @@
                             for di in 
range(self.num_disp_points[ei][si][mi][oi]):
                                 if self.missing[ei][si][mi][oi][di]:
                                     self.has_missing = True
+
+            # Make copy of values structure.
+            self.back_calc_a = deepcopy(self.values_a)
 
 
     def calc_B14_chi2(self, R20A=None, R20B=None, dw=None, pA=None, 
kex=None):




Related Messages


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