Author: bugman Date: Tue Feb 12 10:15:06 2008 New Revision: 4953 URL: http://svn.gna.org/viewcvs/relax?rev=4953&view=rev Log: Fixes for all the unit tests of the maths_fns.n_state_model func() method. The 'full_in_ref_frame' arg was required. Modified: branches/N_state_model/test_suite/unit_tests/_maths_fns/test_n_state_model.py Modified: branches/N_state_model/test_suite/unit_tests/_maths_fns/test_n_state_model.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/test_suite/unit_tests/_maths_fns/test_n_state_model.py?rev=4953&r1=4952&r2=4953&view=diff ============================================================================== --- branches/N_state_model/test_suite/unit_tests/_maths_fns/test_n_state_model.py (original) +++ branches/N_state_model/test_suite/unit_tests/_maths_fns/test_n_state_model.py Tue Feb 12 10:15:06 2008 @@ -48,9 +48,10 @@ [[1.0, 0.0, 1.0], [0.0, 0.5, 0.0], [1.0, 0.0, -1.5]]], float64) red_data = array([1.0, 0.5, 0.0, 0.0, 0.0, 1.0, 0.5, 1.0, 0.0, 0.0, 1.0, 0.5, 0.0, 1.0, 0.0], float64) err = ones(3*5, float64) + full_in_ref_frame = [1, 1, 1] # Set up the class. - model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err) + model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err, full_in_ref_frame=full_in_ref_frame) # Call the target function 3 times. for i in xrange(3): @@ -77,9 +78,10 @@ [[1.0, 0.0, 1.0], [0.0, 0.0, 0.0], [1.0, 0.0, -1.0]]], float64) red_data = array([1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 1.0, 1.0, 0.0, 1.0, 0.0, 0.0, 1.0, 0.0], float64) err = ones(3*5, float64) + full_in_ref_frame = [1, 1, 1] # Set up the class. - model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err) + model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err, full_in_ref_frame=full_in_ref_frame) # Call the target function 3 times. for i in xrange(3): @@ -106,9 +108,10 @@ [[1.0, 0.0, 1.0], [0.0, 0.5, 0.0], [1.0, 0.0, -1.5]]], float64) red_data = array([0.5, 1.0, 0.0, 0.0, 0.0, 0.5, 1.0, -1.0, 0.0, 0.0, 0.5, 1.0, 0.0, 0.0, 1.0], float64) err = ones(3*5, float64) + full_in_ref_frame = [1, 1, 1] # Set up the class. - model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err) + model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err, full_in_ref_frame=full_in_ref_frame) # Call the target function 3 times. for i in xrange(3): @@ -135,9 +138,10 @@ [[1.0, 0.0, 1.0], [0.0, 0.5, 0.0], [1.0, 0.0, -1.5]]], float64) red_data = array([0.75, 0.75, 0.0, 0.0, 0.0, 0.75, 0.75, 0.0, 0.0, 0.0, 0.75, 0.75, 0.0, 0.5, 0.5], float64) err = ones(3*5, float64) + full_in_ref_frame = [1, 1, 1] # Set up the class. - model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err) + model = N_state_opt(N=2, init_params=init_params, full_tensors=full_tensors, red_data=red_data, red_errors=err, full_in_ref_frame=full_in_ref_frame) # Call the target function 3 times. for i in xrange(3):