Author: tlinnet Date: Wed Sep 3 22:50:39 2014 New Revision: 25606 URL: http://svn.gna.org/viewcvs/relax?rev=25606&view=rev Log: Added systemtest to check the extraction of 'Noise Std Dev' from showApod in NMRPipe suite. Modified: trunk/test_suite/system_tests/relax_disp.py Modified: trunk/test_suite/system_tests/relax_disp.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/relax_disp.py?rev=25606&r1=25605&r2=25606&view=diff ============================================================================== --- trunk/test_suite/system_tests/relax_disp.py (original) +++ trunk/test_suite/system_tests/relax_disp.py Wed Sep 3 22:50:39 2014 @@ -36,7 +36,7 @@ import dep_check from lib.errors import RelaxError from lib.io import get_file_path -from lib.spectrum.nmrpipe import show_apod_extract +from lib.spectrum.nmrpipe import show_apod_extract, show_apod_rmsd from pipe_control.mol_res_spin import generate_spin_string, return_spin, spin_loop from pipe_control.minimise import assemble_scaling_matrix from specific_analyses.relax_disp.checks import check_missing_r1 @@ -111,7 +111,8 @@ if not dep_check.showApod_module: # The list of tests to skip. to_skip = [ - "test_show_apod_extract" + "test_show_apod_extract", + "test_show_apod_rmsd" ] # Store in the status object. @@ -6737,6 +6738,22 @@ self.assertEqual(line, line_ver) + def test_show_apod_rmsd(self): + """Test getting the spectrum noise for spectrum fourier transformed with NMRPipe, and tool showApod.""" + + # The path to the data files. + data_path = status.install_path + sep+'test_suite'+sep+'shared_data'+sep+'dispersion'+sep+'repeated_analysis'+sep+'SOD1'+sep+'cpmg_disp_sod1d90a_060518'+sep+'cpmg_disp_sod1d90a_060518_normal.fid'+sep+'ft2_data' + + # Define file name. + file_name = '128_0_FT.ft2' + + # Call function. + rmsd = show_apod_rmsd(file_name=file_name, dir=data_path) + + # Assert. + self.assertEqual(rmsd, 8583.41) + + def test_sod1wt_t25_bug_21954_order_error_analysis(self): """Error analysis of SOD1-WT CPMG. From paper at U{http://dx.doi.org/10.1073/pnas.0907387106}.