mailr15127 - /branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py


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

Header


Content

Posted by edward on January 03, 2012 - 10:04:
Author: bugman
Date: Tue Jan  3 10:04:34 2012
New Revision: 15127

URL: http://svn.gna.org/viewcvs/relax?rev=15127&view=rev
Log:
Fix for the test_atom_loop_spin_selection2() unit test.

The atom loop is now a little different, and the position information is now 
always a rank-2 array.


Modified:
    
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py

Modified: 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py?rev=15127&r1=15126&r2=15127&view=diff
==============================================================================
--- 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py
 (original)
+++ 
branches/frame_order_testing/test_suite/unit_tests/_generic_fns/_structure/test_internal.py
 Tue Jan  3 10:04:34 2012
@@ -192,9 +192,10 @@
             self.assertEqual(spin_num, 163)
             self.assertEqual(spin_name, 'OE1')
             self.assertEqual(element, 'O')
-            self.assertEqual(pos[0], float('10.055'))
-            self.assertEqual(pos[1], float('-2.74'))
-            self.assertEqual(pos[2], float('-13.193'))
+            self.assertEqual(pos.shape, (1, 3))
+            self.assertEqual(pos[0, 0], float('10.055'))
+            self.assertEqual(pos[0, 1], float('-2.74'))
+            self.assertEqual(pos[0, 2], float('-13.193'))
 
             # Increment the atom count.
             atom_count = atom_count + 1




Related Messages


Powered by MHonArc, Updated Tue Jan 03 12:00:02 2012