mailr23250 - /branches/disp_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 May 20, 2014 - 02:02:
Author: tlinnet
Date: Tue May 20 02:02:19 2014
New Revision: 23250

URL: http://svn.gna.org/viewcvs/relax?rev=23250&view=rev
Log:
Fix for variable num_points not set.

Modified:
    branches/disp_speed/target_functions/relax_disp.py

Modified: branches/disp_speed/target_functions/relax_disp.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/disp_speed/target_functions/relax_disp.py?rev=23250&r1=23249&r2=23250&view=diff
==============================================================================
--- branches/disp_speed/target_functions/relax_disp.py  (original)
+++ branches/disp_speed/target_functions/relax_disp.py  Tue May 20 02:02:19 
2014
@@ -490,7 +490,7 @@
                 # This is to prevent pointer to class object array that 
cannot change. Should be equivalent to numpy.copyto (v. 1.7).
                 #self.back_calc[0][si][mi][0][:] = r2eff
                 # Parse back the value to update the back_calc class object.
-                for i in range(num_points):
+                for i in range(self.num_disp_points[0][si][mi][0]):
                     self.back_calc[0][si][mi][0][i] = r2eff[i]
 
                 # 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.




Related Messages


Powered by MHonArc, Updated Tue May 20 11:20:02 2014