mailr11664 - /1.3/test_suite/unit_tests/_data/test_diff_tensor.py


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

Header


Content

Posted by edward on November 17, 2010 - 15:04:
Author: bugman
Date: Wed Nov 17 15:04:52 2010
New Revision: 11664

URL: http://svn.gna.org/viewcvs/relax?rev=11664&view=rev
Log:
Fix for a failing diffusion tensor unit test.

This was testing an unused element of the diffusion tensor data structure 
incorrectly.


Modified:
    1.3/test_suite/unit_tests/_data/test_diff_tensor.py

Modified: 1.3/test_suite/unit_tests/_data/test_diff_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/_data/test_diff_tensor.py?rev=11664&r1=11663&r2=11664&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/_data/test_diff_tensor.py (original)
+++ 1.3/test_suite/unit_tests/_data/test_diff_tensor.py Wed Nov 17 15:04:52 
2010
@@ -46,9 +46,14 @@
         Dpar_unit = array([sin(theta) * cos(phi), sin(theta) * sin(phi), 
cos(theta)])
 
         # Matrices.
-        tensor_diag = array([[ Dper,  0.0,  0.0],
-                             [  0.0, Dper,  0.0],
-                             [  0.0,  0.0, Dpar]])
+        if Dpar > Dper:
+            tensor_diag = array([[ Dper,  0.0,  0.0],
+                                 [  0.0, Dper,  0.0],
+                                 [  0.0,  0.0, Dpar]])
+        else:
+            tensor_diag = array([[ Dpar,  0.0,  0.0],
+                                 [  0.0, Dper,  0.0],
+                                 [  0.0,  0.0, Dper]])
         rotation = array([[ cos(theta) * cos(phi), -sin(phi), sin(theta) * 
cos(phi) ],
                           [ cos(theta) * sin(phi),  cos(phi), sin(theta) * 
sin(phi) ],
                           [           -sin(theta),       0.0,            
cos(theta) ]])




Related Messages


Powered by MHonArc, Updated Wed Nov 17 16:20:02 2010