mailr25278 - /trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py


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

Header


Content

Posted by edward on August 26, 2014 - 12:17:
Author: bugman
Date: Tue Aug 26 12:17:23 2014
New Revision: 25278

URL: http://svn.gna.org/viewcvs/relax?rev=25278&view=rev
Log:
Activated parameter scaling of the gradient in the test_dfunc_off_minimum() 
unit test.

This is the test class 
test_suite.unit_tests._target_functions.test_relax_fit.Test_relax_fit.


Modified:
    trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py

Modified: trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py?rev=25278&r1=25277&r2=25278&view=diff
==============================================================================
--- trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py     
(original)
+++ trunk/test_suite/unit_tests/_target_functions/test_relax_fit.py     Tue 
Aug 26 12:17:23 2014
@@ -89,8 +89,10 @@
         R = 2.0
         params = [R/self.scaling_list[0], I0/self.scaling_list[1]]
 
-        # Get the chi-squared gradient.
+        # Get the chi-squared gradient, and scale it.
         grad = dfunc(params)
+        for i in range(2):
+            grad[i] *= self.scaling_list[i]
 
         # Printout.
         print("The gradient at %s is:\n%s" % (params, grad))




Related Messages


Powered by MHonArc, Updated Tue Aug 26 12:40:02 2014