e8aff8a890da8670ea8af8783caf3984c4dde558,dipy/align/tests/test_transforms.py,,test_param_to_matrix_3d,#,99
Before Change
// Verify that ValueError is raised if the transform are invalid
dim = 3
theta = np.ndarray(2)
assert_raises(ValueError, param_to_matrix, -1, dim, theta)
// Verify that ValueError is raised if incorrect number of parameters
for transform in transform_type.keys():
After Change
assert_array_almost_equal(actual, expected)
// Test affine 2D
transform = regtransforms[("AFFINE", 3) ]
theta = np.random.rand(12)
expected = np.eye(4)
expected[0,:] = theta[:4]
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_param_to_matrix_3d
Project Name: automl/SMAC3
Commit Name: bbdd942f557819eb3a94015826dc59258b84a2fc
Time: 2016-11-17
Author: marius.rks@googlemail.com
File Name: smac/epm/rf_with_instances.py
Class Name: RandomForestWithInstances
Method Name: predict
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