Author: tlinnet
Date: Fri Aug 29 22:11:41 2014
New Revision: 25458
URL: http://svn.gna.org/viewcvs/relax?rev=25458&view=rev
Log:
Improved systemtest test_bug_negative_intensities_cpmg, by counting number of
R2eff points.
Spin 4, which has one negative intensity, is expected to have one less R2eff
point.
This makes sure, that all CPMG data set can be loaded and analysed, even if
some peaks are very weak
are fluctuating with error level.
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=25458&r1=25457&r2=25458&view=diff
==============================================================================
--- trunk/test_suite/system_tests/relax_disp.py (original)
+++ trunk/test_suite/system_tests/relax_disp.py Fri Aug 29 22:11:41 2014
@@ -1825,14 +1825,13 @@
# Execute
relax_disp.Relax_disp(pipe_name='relax_disp', results_dir=results_dir,
models=MODELS, grid_inc=GRID_INC, mc_sim_num=MC_NUM, modsel=MODSEL)
- # Check spin has been de selected.
- #for cur_spin, mol_name, resi, resn, spin_id in
spin_loop(full_info=True, return_id=True, skip_desel=False):
- # print(spin_id, cur_spin.select)
- # if spin_id == ':3@N':
- # #self.assertEqual(cur_spin.select, True)
- # print cur_spin
- # else:
- # self.assertEqual(cur_spin.select, True)
+ # Check spin less R2eff points.
+ for cur_spin, mol_name, resi, resn, spin_id in
spin_loop(full_info=True, return_id=True, skip_desel=False):
+ # Assert that spin 4, has one less R2eff point, since one of the
intensities are negative.
+ if spin_id == ':4@N':
+ self.assertEqual(len(cur_spin.r2eff), 14)
+ else:
+ self.assertEqual(len(cur_spin.r2eff), 15)
def test_check_missing_r1(self):
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits