Author: bugman Date: Wed Mar 4 14:28:46 2015 New Revision: 27771 URL: http://svn.gna.org/viewcvs/relax?rev=27771&view=rev Log: Created the Align_tensor.test_copy_pipes system test.
This is to show a problem in the align_tensor.copy user function when copying all tensors between data pipes. Modified: trunk/test_suite/system_tests/align_tensor.py Modified: trunk/test_suite/system_tests/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/trunk/test_suite/system_tests/align_tensor.py?rev=27771&r1=27770&r2=27771&view=diff ============================================================================== --- trunk/test_suite/system_tests/align_tensor.py (original) +++ trunk/test_suite/system_tests/align_tensor.py Wed Mar 4 14:28:46 2015 @@ -1,6 +1,6 @@ ############################################################################### # # -# Copyright (C) 2006-2013 Edward d'Auvergne # +# Copyright (C) 2006-2015 Edward d'Auvergne # # # # This file is part of the program relax (http://www.nmr-relax.com). # # # @@ -288,6 +288,28 @@ self.assertEqual(cdp.align_tensors[1].name, 'new') + def test_copy_pipes(self): + """Test the copying of alignment tensors between data pipes.""" + + # First reset. + self.interpreter.reset() + + # Create two data pipes. + self.interpreter.pipe.create('target', 'N-state') + self.interpreter.pipe.create('source', 'N-state') + + # Initialise one tensor. + self.interpreter.align_tensor.init(tensor='orig', align_id='test', params=self.tensors_full[0], param_types=0) + + # Copy the tensor. + self.interpreter.align_tensor.copy(pipe_from='source', pipe_to='target') + + # Checks. + self.interpreter.pipe.switch('target') + self.assertEqual(len(cdp.align_tensors), 1) + self.assertEqual(cdp.align_tensors[0].name, 'orig') + + def test_fix(self): """Test the align_tensor.fix user function.""" _______________________________________________ relax (http://www.nmr-relax.com) This is the relax-commits mailing list relax-commits@gna.org 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