493347a4ff6d915fa91d24271a39c315704722db,dipy/align/tests/test_metrics.py,,test_exceptions,#,11
Before Change
check_image_size_error(metric)
metric = CCMetric(3)
for shape in itertools.product((5, 8, 3), (8, 5, 30)):
check_image_size_error(metric)
def test_EMMetric_image_dynamics():
np.random.seed(7181309)
metric = EMMetric(2)
After Change
// Generate many shape combinations
shapes_2d = itertools.product((5, 8), (8, 5))
shapes_3d = itertools.product((5, 8), (8, 5), (30, 50))
all_shapes = itertools.chain(shapes_2d, shapes_3d)
// expected to fail for any dimension < 2*radius + 1.
for shape in all_shapes:
metric = init_metric(shape, 4)
assert_raises(ValueError, metric.initialize_iteration)
// expected to pass for any dimension == 2*radius + 1.
metric = init_metric((9, 9), 4)
metric.initialize_iteration()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: nipy/dipy
Commit Name: 493347a4ff6d915fa91d24271a39c315704722db
Time: 2019-05-04
Author: skab12@gmail.com
File Name: dipy/align/tests/test_metrics.py
Class Name:
Method Name: test_exceptions
Project Name: Qiskit/qiskit-aqua
Commit Name: 790ff93e20cc36e15dfd039924e782cc559a67d7
Time: 2019-08-01
Author: chenrich@us.ibm.com
File Name: qiskit/aqua/operators/op_converter.py
Class Name:
Method Name: to_weighted_pauli_operator
Project Name: Theano/Theano
Commit Name: e97223befaafffafb10b730f9837cbcdd44cd394
Time: 2017-05-11
Author: hapemask@gmail.com
File Name: theano/gpuarray/tests/test_dnn.py
Class Name: TestDnnInferShapes
Method Name: test_conv_gradi