Author: bugman Date: Thu Mar 3 15:43:09 2011 New Revision: 12791 URL: http://svn.gna.org/viewcvs/relax?rev=12791&view=rev Log: Created the test_back_calc_new() relaxation data system test for the back calculation of new data. Modified: 1.3/test_suite/system_tests/relax_data.py Modified: 1.3/test_suite/system_tests/relax_data.py URL: http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/relax_data.py?rev=12791&r1=12790&r2=12791&view=diff ============================================================================== --- 1.3/test_suite/system_tests/relax_data.py (original) +++ 1.3/test_suite/system_tests/relax_data.py Thu Mar 3 15:43:09 2011 @@ -84,3 +84,26 @@ # Increment. index += 1 + + + def test_back_calc_new(self): + """Test the back calculation of new relaxation data from model-free results.""" + + # Load the original state. + self.interpreter.state.load(state='sphere_trunc', dir=status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'model_free'+sep+'bug_14941_local_tm_global_selection') + + # Back calculate the relaxation data. + self.interpreter.relax_data.back_calc('NOE_500.001', ri_type='NOE', frq=500.001e6) + + # The actual data. + ri_data_bc = [{'NOE_500.001': 0.52064607759431081}, + {'NOE_500.001': 0.57759452179767434}] + + # Loop over the spins. + index = 0 + for spin in spin_loop(): + # Check the back calculated data. + self.assertEqual(spin.ri_data_bc, ri_data_bc[index]) + + # Increment. + index += 1