Package test_suite :: Package system_tests :: Module diffusion_tensor :: Class Diffusion_tensor
[hide private]
[frames] | no frames]

Class Diffusion_tensor

source code


Class for testing various aspects specific to the diffusion tensor.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
setUp(self)
Function for initialising a spherical, spheroidal, and ellipsoidal diffusion tensor.
source code
 
tearDown(self)
Reset the relax data storage object.
source code
 
check_ellipsoid(self, Dx, Dy, Dz, Diso, Da, Dr, alpha, beta, gamma, D, D_prime, R)
Check if the ellipsoid in the cdp has the same values as given.
source code
 
check_spheroid(self, tm, Dpar, Dper, Diso, Da, Dratio, theta, phi, D, D_prime, R, spheroid_type=None)
Check if the spheroid in the cdp has the same values as given.
source code
 
check_spheroid_as_ellipsoid(self, tm, Dx, Dy, Dz, Diso, Da, D, D_prime, R)
Check if the ellipsoid in the cdp has the same values as given spheroid.
source code
 
get_ellipsoid(self)
Return all the diffusion tensor info about the {Dx, Dy, Dz, alpha, beta, gamma} = {1e7, 2e7, 3e7, 1, 2, 0.5} ellipsoid tensor.
source code
 
get_spheroid(self, Dpar=None, Dper=None, theta=None, phi=None)
Return all the diffusion tensor info about the given spheroid tensor.
source code
 
test_back_calc_ellipsoid(self)
Check the back-calculation of relaxation data for the spherical diffusion tensor.
source code
 
test_back_calc_sphere(self)
Check the back-calculation of relaxation data for the spherical diffusion tensor.
source code
 
test_back_calc_spheroid(self)
Check the back-calculation of relaxation data for the spherical diffusion tensor.
source code
 
test_bug_21561_tensor_pdb_failure(self)
Catch bug #21561 reported by Martin Ballaschk, the failure of the diffusion tensor PDB creation when Monte Carlo simulations are not present.
source code
 
test_copy(self)
The user function diffusion_tensor.copy().
source code
 
test_delete(self)
The user function diffusion_tensor.delete().
source code
 
test_display(self)
The user function diffusion_tensor.display().
source code
 
test_create_diff_tensor_pdb_ellipsoid(self)
Test the user function structure.create_diff_tensor_pdb() for the ellipsoid.
source code
 
test_create_diff_tensor_pdb_sphere(self)
Test the user function structure.create_diff_tensor_pdb() for the sphere.
source code
 
test_create_diff_tensor_pdb_spheroid(self)
Test the user function structure.create_diff_tensor_pdb() for the spheroid.
source code
 
test_init_ellipsoid_param_types_0(self)
Test the initialisation of the ellipsoid diffusion tensor using parameter set 0.
source code
 
test_init_ellipsoid_param_types_1(self)
Test the initialisation of the ellipsoid diffusion tensor using parameter set 0.
source code
 
test_init_ellipsoid_param_types_2(self)
Test the initialisation of the ellipsoid diffusion tensor using parameter set 0.
source code
 
test_init_ellipsoid_param_types_3(self)
Test the initialisation of the ellipsoid diffusion tensor using parameter set 0.
source code
 
test_init_oblate_spheroid_as_ellipsoid(self)
Test the initialisation of the spheroid diffusion tensor using parameter set 4.
source code
 
test_init_oblate_spheroid_param_types_0(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 0.
source code
 
test_init_oblate_spheroid_param_types_1(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 1.
source code
 
test_init_oblate_spheroid_param_types_1_deg(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 1, and angles in deg.
source code
 
test_init_oblate_spheroid_param_types_2(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 2.
source code
 
test_init_oblate_spheroid_param_types_3(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 3.
source code
 
test_init_oblate_spheroid_param_types_4(self)
Test the initialisation of the oblate spheroid diffusion tensor using parameter set 4.
source code
 
test_init_prolate_spheroid_as_ellipsoid(self)
Test the initialisation of the spheroid diffusion tensor using parameter set 4.
source code
 
test_init_prolate_spheroid_param_types_0(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 0.
source code
 
test_init_prolate_spheroid_param_types_0b(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 0.
source code
 
test_init_prolate_spheroid_param_types_1(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 1.
source code
 
test_init_prolate_spheroid_param_types_1_deg(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 1, and angles in deg.
source code
 
test_init_prolate_spheroid_param_types_2(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 2.
source code
 
test_init_prolate_spheroid_param_types_3(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 3.
source code
 
test_init_prolate_spheroid_param_types_4(self)
Test the initialisation of the prolate spheroid diffusion tensor using parameter set 4.
source code
 
test_opt_ellipsoid(self)
Check that the ellipsoid diffusion tensor optimisation functions correctly.
source code
 
test_opt_sphere(self)
Check that the sphere diffusion tensor optimisation functions correctly.
source code
 
test_opt_spheroid(self)
Check that the spheroid diffusion tensor optimisation functions correctly.
source code

Inherited from base_classes.SystemTestCase: __init__, script_exec

Inherited from unittest.case.TestCase: __call__, __eq__, __hash__, __ne__, __repr__, __str__, addCleanup, addTypeEqualityFunc, assertAlmostEqual, assertAlmostEquals, assertDictContainsSubset, assertDictEqual, assertEqual, assertEquals, assertFalse, assertGreater, assertGreaterEqual, assertIn, assertIs, assertIsInstance, assertIsNone, assertIsNot, assertIsNotNone, assertItemsEqual, assertLess, assertLessEqual, assertListEqual, assertMultiLineEqual, assertNotAlmostEqual, assertNotAlmostEquals, assertNotEqual, assertNotEquals, assertNotIn, assertNotIsInstance, assertNotRegexpMatches, assertRaises, assertRaisesRegexp, assertRegexpMatches, assertSequenceEqual, assertSetEqual, assertTrue, assertTupleEqual, assert_, countTestCases, debug, defaultTestResult, doCleanups, fail, failIf, failIfAlmostEqual, failIfEqual, failUnless, failUnlessAlmostEqual, failUnlessEqual, failUnlessRaises, id, run, shortDescription, skipTest

Inherited from unittest.case.TestCase (private): _addSkip, _baseAssertEqual, _deprecate, _formatMessage, _getAssertEqualityFunc, _truncateMessage

Inherited from object: __delattr__, __format__, __getattribute__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from unittest.case.TestCase: setUpClass, tearDownClass

Class Variables [hide private]

Inherited from unittest.case.TestCase: longMessage, maxDiff

Inherited from unittest.case.TestCase (private): _classSetupFailed, _diffThreshold

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setUp(self)

source code 

Function for initialising a spherical, spheroidal, and ellipsoidal diffusion tensor.

Overrides: unittest.case.TestCase.setUp

tearDown(self)

source code 

Reset the relax data storage object.

Overrides: unittest.case.TestCase.tearDown