8318aa79c4898d4bfa3c8b5342d726afd4da7d54,dipy/tracking/tests/test_utils.py,,_target,#,240
Before Change
assert_raises(ValueError, list, new)
// Test smaller voxels
random_array = np.array([[0.2862315, 0.44142904, 0.19837613, 0.422711],
[0.7434331, 0.55335599, 0.18633461, 0.427429],
[0.1465992, 0.84593179, 0.79033433, 0.576709],
[0.6525159, 0.96735703, 0.69833409, 0.117800]])
affine = random_array - .5
affine[3] = [0, 0, 0, 1]
streamlines = list(move_streamlines(streamlines, affine))
new = list(target_f(streamlines, mask, affine=affine))
After Change
assert_raises(ValueError, list, new)
// Test smaller voxels
affine = np.array([[.3, 0, 0, 0],
[0, .2, 0, 0],
[0, 0, .4, 0],
[0, 0, 0, 1]])
streamlines = list(move_streamlines(streamlines, affine))
new = list(target_f(streamlines, mask, affine=affine))
assert_equal(len(new), 1)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances
Project Name: nipy/dipy
Commit Name: 8318aa79c4898d4bfa3c8b5342d726afd4da7d54
Time: 2018-12-10
Author: skab12@gmail.com
File Name: dipy/tracking/tests/test_utils.py
Class Name:
Method Name: _target
Project Name: broadinstitute/keras-rcnn
Commit Name: 7dc2b014931e8d787fb845f70d4b244f104dfc08
Time: 2018-02-27
Author: jyhung@broadinstitute.org
File Name: tests/backend/test_common.py
Class Name:
Method Name: test_ratio_enum
Project Name: pandas-dev/pandas
Commit Name: ff628b17ccfcaf14ceefeb438aafa56d3849937c
Time: 2021-01-19
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/frame/test_ufunc.py
Class Name:
Method Name: test_binary_input_aligns_columns
Project Name: pandas-dev/pandas
Commit Name: ff628b17ccfcaf14ceefeb438aafa56d3849937c
Time: 2021-01-19
Author: jorisvandenbossche@gmail.com
File Name: pandas/tests/frame/test_ufunc.py
Class Name:
Method Name: test_binary_input_aligns_index