mailr11682 - /1.3/test_suite/system_tests/diffusion_tensor.py


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

Header


Content

Posted by edward on November 18, 2010 - 18:20:
Author: bugman
Date: Thu Nov 18 18:20:02 2010
New Revision: 11682

URL: http://svn.gna.org/viewcvs/relax?rev=11682&view=rev
Log:
Added a new system test test_init_oblate_spheroid_as_ellipsoid().


Modified:
    1.3/test_suite/system_tests/diffusion_tensor.py

Modified: 1.3/test_suite/system_tests/diffusion_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/system_tests/diffusion_tensor.py?rev=11682&r1=11681&r2=11682&view=diff
==============================================================================
--- 1.3/test_suite/system_tests/diffusion_tensor.py (original)
+++ 1.3/test_suite/system_tests/diffusion_tensor.py Thu Nov 18 18:20:02 2010
@@ -629,6 +629,23 @@
         self.check_ellipsoid(Dx, Dy, Dz, Diso, Da, Dr, alpha, beta, gamma, 
D, D_prime, R)
 
 
+    def test_init_oblate_spheroid_as_ellipsoid(self):
+        """Test the initialisation of the spheroid diffusion tensor using 
parameter set 4."""
+
+        # Get the spheroid data.
+        Dpar, Dper, theta, phi = 1e7, 4e7, pi/4.0, 0.0
+        tm, Dx, Dy, Dz, Diso, Da, Dratio, D, D_prime, R = 
self.get_spheroid(Dpar=Dpar, Dper=Dper, theta=theta, phi=phi)
+
+        # Create a new data pipe.
+        self.interpreter.pipe.create('spheroid2', 'mf')
+
+        # Tensor initialization.
+        self.interpreter.diffusion_tensor.init((D[0, 0], D[1, 1], D[2, 2], 
D[0, 1], D[0, 2], D[1, 2]), param_types=3)
+
+        # Check the ellipsoid.
+        self.check_spheroid_as_ellipsoid(tm, Dx, Dy, Dz, Diso, Da, D, 
D_prime, R)
+
+
     def test_init_oblate_spheroid_param_types_0(self):
         """Test the initialisation of the oblate spheroid diffusion tensor 
using parameter set 0."""
 




Related Messages


Powered by MHonArc, Updated Thu Nov 18 18:40:02 2010