mailr3979 - /1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py


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

Header


Content

Posted by edward on November 25, 2007 - 23:23:
Author: bugman
Date: Sun Nov 25 23:23:39 2007
New Revision: 3979

URL: http://svn.gna.org/viewcvs/relax?rev=3979&view=rev
Log:
Wrote 3 unit tests for displaying spherical, spheroidal, and ellipsoidal 
diffusion tensors.


Modified:
    1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py

Modified: 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py?rev=3979&r1=3978&r2=3979&view=diff
==============================================================================
--- 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py (original)
+++ 1.3/test_suite/unit_tests/diffusion_tensor_testing_base.py Sun Nov 25 
23:23:39 2007
@@ -96,6 +96,49 @@
 
         # Try to delete the tensor data.
         self.assertRaises(RelaxNoPipeError, self.diffusion_tensor_fns.delete)
+
+
+    def test_display_ellipsoid(self):
+        """Display an ellipsoidal diffusion tensor.
+
+        The functions tested are both generic_fns.diffusion_tensor.display() 
and
+        prompt.diffusion_tensor.display().
+        """
+
+        # Initialise the tensor.
+        self.diffusion_tensor_fns.init(params=(13.9, 1.8, 0.7, 10.6, -23.3, 
0.34), time_scale=1e-9, d_scale=1e7, angle_units='rad', param_types=0, 
fixed=1)
+
+        # Display the diffusion tensor.
+        self.diffusion_tensor_fns.display()
+
+
+    def test_display_sphere(self):
+        """Display a spherical diffusion tensor.
+
+        The functions tested are both generic_fns.diffusion_tensor.display() 
and
+        prompt.diffusion_tensor.display().
+        """
+
+        # Initialise the tensor.
+        self.diffusion_tensor_fns.init(params=1e-9)
+
+        # Display the diffusion tensor.
+        self.diffusion_tensor_fns.display()
+
+
+    def test_display_spheroid(self):
+        """Display a spheroidal diffusion tensor.
+
+        The functions tested are both generic_fns.diffusion_tensor.display() 
and
+        prompt.diffusion_tensor.display().
+        """
+
+        # Initialise the tensor.
+        self.diffusion_tensor_fns.init(params=(8.6, 1.3, 600, -20), 
time_scale=1e-9, d_scale=1e7, angle_units='deg', param_types=2, 
spheroid_type='prolate', fixed=0)
+
+        # Display the diffusion tensor.
+        self.diffusion_tensor_fns.display()
+
 
 
     def test_init_bad_angle_units(self):




Related Messages


Powered by MHonArc, Updated Sun Nov 25 23:40:07 2007