Author: bugman Date: Tue Aug 26 11:39:01 2014 New Revision: 25273 URL: http://svn.gna.org/viewcvs/relax?rev=25273&view=rev Log: The relax_fit C module unit tests now check if the parameter scaling is functional. 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=25273&r1=25272&r2=25273&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 11:39:01 2014 @@ -33,10 +33,13 @@ def setUp(self): """Create a number of objects for the calculation and testing of the relaxation curve-fitting equations.""" + # The parameter scaling. + scaling_list = [1, 1000] + # The parameter values at the minimum. self.I0 = 1000 self.R = 1 - self.params = [self.R, self.I0] + self.params = [self.R/scaling_list[0], self.I0/scaling_list[1]] # The time points. relax_times = [0, 1, 2, 3, 4] @@ -46,9 +49,6 @@ # The intensity errors. errors = [10, 10, 10, 10, 10] - - # The parameter scaling. - scaling_list = [1, 1] # Setup the C module. setup(num_params=2, num_times=len(relax_times), values=I, sd=errors, relax_times=relax_times, scaling_matrix=scaling_list)