Package test_suite :: Package unit_tests :: Package _lib :: Package _frame_order :: Module test_matrix_ops :: Class Test_matrix_ops
[hide private]
[frames] | no frames]

Class Test_matrix_ops

source code


Unit tests for the lib.frame_order_matrix_ops relax module.

Nested Classes [hide private]

Inherited from unittest.case.TestCase: failureException

Instance Methods [hide private]
 
__init__(self, methodName='runTest')
Skip the tests if scipy is not installed.
source code
 
setUp(self)
Initialise a few data structures for the tests.
source code
 
calc_Rx2_eigen_axis(self, axis_theta, axis_phi)
Calculate the Kronecker product of the eigenframe rotation for the z-axis based frame.
source code
 
calc_Rx2_eigen_full(self, eigen_alpha, eigen_beta, eigen_gamma)
Calculate the Kronecker product of the eigenframe rotation for the full eigenframe.
source code
 
setup_identity(self)
Set up a few identity matrices.
source code
 
setup_identity_free_rotor(self)
Set up a few identity matrices.
source code
 
test_compile_2nd_matrix_free_rotor_point1(self)
Check the operation of the compile_2nd_matrix_free_rotor() function.
source code
 
test_compile_2nd_matrix_free_rotor_point2(self)
Check the operation of the compile_2nd_matrix_free_rotor() function.
source code
 
test_compile_2nd_matrix_iso_cone_disorder(self)
Check if compile_2nd_matrix_iso_cone() can return the identity matrix for disorder.
source code
 
test_compile_2nd_matrix_iso_cone_half_cone(self)
Check if compile_2nd_matrix_iso_cone() can return the matrix for a half cone.
source code
 
test_compile_2nd_matrix_iso_cone_half_cone_90_y(self)
Check if compile_2nd_matrix_iso_cone() can return the matrix for a half cone rotated 90 degrees about y.
source code
 
test_compile_2nd_matrix_iso_cone_order(self)
Check if compile_2nd_matrix_iso_cone() can return the identity matrix for order.
source code
 
test_compile_2nd_matrix_iso_cone_order2(self)
2nd check if compile_2nd_matrix_iso_cone() can return the identity matrix for order.
source code
 
test_compile_2nd_matrix_iso_cone_restriction_test(self)
Check if compile_2nd_matrix_iso_cone() can approximate compile_2nd_matrix_iso_cone_free_rotor().
source code
 
test_compile_2nd_matrix_iso_cone_restriction_test2(self)
Check if compile_2nd_matrix_iso_cone() can approximate compile_2nd_matrix_iso_cone_torsionless().
source code
 
test_compile_2nd_matrix_iso_cone_free_rotor_disorder(self)
Check if compile_2nd_matrix_iso_cone_free_rotor() can return the identity matrix for disorder.
source code
 
test_compile_2nd_matrix_iso_cone_free_rotor_half_cone(self)
Check if compile_2nd_matrix_iso_cone() can return the matrix for a half cone.
source code
 
test_compile_2nd_matrix_iso_cone_free_rotor_half_cone_90_y(self)
Check if compile_2nd_matrix_iso_cone() can return the matrix for a half cone rotated 90 degrees about y.
source code
 
test_compile_2nd_matrix_iso_cone_free_rotor_order(self)
Check if compile_2nd_matrix_iso_cone_free_rotor() can return the identity matrix for order.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_point1(self)
Check the operation of the compile_2nd_matrix_pseudo_ellipse() function.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_point2(self)
Check the operation of the compile_2nd_matrix_pseudo_ellipse() function.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_point3(self)
Check the operation of the compile_2nd_matrix_pseudo_ellipse() function.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_disorder(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the identity matrix for disorder.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_half_cone(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the matrix for a half cone.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_half_cone_90_y(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the matrix for a half cone rotated 90 degrees about y.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_order(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the identity matrix for order.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate compile_2nd_matrix_pseudo_ellipse_free_rotor().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test2(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate a pi/2 rotated compile_2nd_matrix_pseudo_ellipse_free_rotor().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test3(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate compile_2nd_matrix_pseudo_ellipse_torsionless().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test4(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate compile_2nd_matrix_iso_cone().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test5(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate compile_2nd_matrix_iso_cone_free_rotor().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_restriction_test6(self)
Check if compile_2nd_matrix_pseudo_ellipse() can approximate compile_2nd_matrix_iso_cone_torsionless().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_disorder(self)
Check if compile_2nd_matrix_pseudo_ellipse_free_rotor() can return the identity matrix for disorder.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_half_cone(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the matrix for a half cone.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_half_cone_90_y(self)
Check if compile_2nd_matrix_pseudo_ellipse() can return the matrix for a half cone rotated 90 degrees about y.
source code
 
fixme_test_compile_2nd_matrix_pseudo_ellipse_free_rotor_order(self)
Check if compile_2nd_matrix_pseudo_ellipse_free_rotor() can return the identity matrix for order.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_point1(self)
Check the operation of the compile_2nd_matrix_pseudo_ellipse_free_rotor() function.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_point2(self)
Check the operation of the compile_2nd_matrix_pseudo_ellipse_free_rotor() function.
source code
 
test_compile_2nd_matrix_pseudo_ellipse_free_rotor_restriction_test(self)
Check if compile_2nd_matrix_pseudo_ellipse_free_rotor() can approximate compile_2nd_matrix_iso_cone_free_rotor().
source code
 
test_compile_2nd_matrix_pseudo_ellipse_torsionless_restriction_test(self)
Check if compile_2nd_matrix_pseudo_ellipse_torsionless() can approximate compile_2nd_matrix_iso_cone_torsionless().
source code
 
test_compile_2nd_matrix_rotor_point1(self)
Check the operation of the compile_2nd_matrix_rotor() function.
source code
 
test_reduce_alignment_tensor_order(self)
Test the alignment tensor reduction for the order identity matrix.
source code
 
test_reduce_alignment_tensor_disorder(self)
Test the alignment tensor reduction for the order identity matrix.
source code
 
test_reduce_alignment_tensor_half_cone(self)
Test the alignment tensor reduction for the order identity matrix.
source code

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, tearDown

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]

__init__(self, methodName='runTest')
(Constructor)

source code 

Skip the tests if scipy is not installed.

Parameters:
  • methodName (str) - The name of the test.
Overrides: object.__init__

setUp(self)

source code 

Initialise a few data structures for the tests.

Overrides: unittest.case.TestCase.setUp