e8aff8a890da8670ea8af8783caf3984c4dde558,dipy/align/tests/test_transforms.py,,test_get_identity_parameters,#,206
Before Change
// Verify that ValueError is raised if the transform/dimension are invalid
assert_raises(ValueError, get_identity_parameters, -1, 2)
assert_raises(ValueError, get_identity_parameters, 1, 4)
def test_eval_jacobian_function():
//Compare the analytical Jacobians with their numerical approximations
After Change
def test_get_identity_parameters():
for transform in regtransforms.values() :
n = transform.get_number_of_parameters()
dim = transform.get_dim()
theta = transform.get_identity_parameters()
expected = np.eye(dim + 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: nipy/dipy
Commit Name: e8aff8a890da8670ea8af8783caf3984c4dde558
Time: 2015-02-25
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_transforms.py
Class Name:
Method Name: test_get_identity_parameters
Project Name: nipy/dipy
Commit Name: e8aff8a890da8670ea8af8783caf3984c4dde558
Time: 2015-02-25
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_transforms.py
Class Name:
Method Name: test_param_to_matrix_2d
Project Name: nipy/dipy
Commit Name: e8aff8a890da8670ea8af8783caf3984c4dde558
Time: 2015-02-25
Author: jomaroceguedag@gmail.com
File Name: dipy/align/tests/test_transforms.py
Class Name:
Method Name: test_param_to_matrix_3d