mailr13415 - /branches/xyz/test_suite/system_tests/structure.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by hasu on July 04, 2011 - 14:31:
Author: han87
Date: Mon Jul  4 14:30:59 2011
New Revision: 13415

URL: http://svn.gna.org/viewcvs/relax?rev=13415&view=rev
Log:
Adding a new system test to load a vector.

A system test for loading a vector between two spins has been included in the 
'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=13415&r1=13414&r2=13415&view=diff
==============================================================================
--- branches/xyz/test_suite/system_tests/structure.py (original)
+++ branches/xyz/test_suite/system_tests/structure.py Mon Jul  4 14:30:59 2011
@@ -677,3 +677,9 @@
         # And now all the rest of the atoms.
         self.interpreter.structure.load_spins()
 
+        # Extract a vector between first two spins.
+        self.interpreter.structure.vectors(attached='@10', 
spin_id='#SSS-cluster4-new-test_mol1@2')
+        self.assertAlmostEqual(a.bond_vect[0], -2.162)
+        self.assertAlmostEqual(a.bond_vect[1], 3.274)
+        self.assertAlmostEqual(a.bond_vect[2], -3.518)
+




Related Messages


Powered by MHonArc, Updated Mon Jul 04 14:40:02 2011