Author: han87 Date: Mon Jun 27 18:51:42 2011 New Revision: 13245 URL: http://svn.gna.org/viewcvs/relax?rev=13245&view=rev Log: Adding code for extracting the vector in the system test test_read_xyz_internal2() Code for extracting a vector of two given atoms was added in the system test test_read_xyz_internal2(). Modified: branches/xyz/test_suite/system_tests/structure.py Modified: branches/xyz/test_suite/system_tests/structure.py URL: http://svn.gna.org/viewcvs/relax/branches/xyz/test_suite/system_tests/structure.py?rev=13245&r1=13244&r2=13245&view=diff ============================================================================== --- branches/xyz/test_suite/system_tests/structure.py (original) +++ branches/xyz/test_suite/system_tests/structure.py Mon Jun 27 18:51:42 2011 @@ -685,3 +685,7 @@ # And now all the rest of the atoms. self.interpreter.structure.load_spins() + # Extract a vector between first two spins. + self.interpreter.structure.vectors_xyz(spin_id1='#SSS-cluster4-new-test_mol1@1', spin_id2='#SSS-cluster4-new-test_mol1@2') + print((cdp.mol[0].res[0].spin[0])) + self.assert_(hasattr(cdp.mol[0].res[0].spin[0], 'bond_vect'))