Author: tlinnet Date: Wed Feb 26 14:51:48 2014 New Revision: 22337 URL: http://svn.gna.org/viewcvs/relax?rev=22337&view=rev Log: Extended system test to count number of settings iterations and match with len(cdp.exp_type.keys()). Regarding bug #21344, (https://gna.org/bugs/index.php?21344) - Handling of in sparse acquired R1rho dataset with missing combinations of time and spin-lock field strengths. There is something wrong, since cdp.exp_type.keys()) is not matching. 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=22337&r1=22336&r2=22337&view=diff ============================================================================== --- trunk/test_suite/system_tests/relax_disp.py (original) +++ trunk/test_suite/system_tests/relax_disp.py Wed Feb 26 14:51:48 2014 @@ -2606,6 +2606,8 @@ spin_lock_field_strengths_Hz = {'35': 431.0, '39': 651.2, '41': 800.5, '43': 984.0, '46': 1341.11, '48': 1648.5} # Apply spectra settings. + # Count settings + j = 0 for i in range(len(expfileslines)): line=expfileslines[i] if line[0] == "#": @@ -2655,6 +2657,15 @@ # Set the spectrometer frequency. self.interpreter.spectrometer.frequency(id=sp_id, frq=set_sfrq, units='MHz') + + # Add to counter + j += 1 + + print("Testing the number of settings") + print("Number of settings iterations is: %s. Number of cdp.exp_type.keys() is: %s"%(i, len(cdp.exp_type.keys() ) ) ) + self.assertEqual(70, len(expfileslines)) + self.assertEqual(69, j) + self.assertEqual(69, len(cdp.exp_type.keys()) ) # The dispersion models. MODELS = ['R2eff', 'No Rex', 'DPL94']