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))


_______________________________________________
relax (http://www.nmr-relax.com)

This is the relax-commits mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits

Reply via email to