3fdddc4841d9f338dcdd90cc50d6c3fa9bd22908,dipy/core/tests/test_gradients.py,,test_unique_bvals_deprecated,#,23

Before Change




def test_unique_bvals_deprecated():
    with warnings.catch_warnings(record=True) as cw:
        warnings.simplefilter("always", DeprecationWarning)
        _ = unique_bvals(np.array([0, 800, 1400, 1401, 1405]))
        npt.assert_(issubclass(cw[0].category, DeprecationWarning))


def test_btable_prepare():

    sq2 = np.sqrt(2) / 2.
    bvals = 1500 * np.ones(7)

After Change




def test_unique_bvals_deprecated():
    npt.assert_raises(ExpiredDeprecationError, unique_bvals,
                      np.array([0, 800, 1400, 1401, 1405]))


def test_btable_prepare():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: nipy/dipy
Commit Name: 3fdddc4841d9f338dcdd90cc50d6c3fa9bd22908
Time: 2021-03-17
Author: skab12@gmail.com
File Name: dipy/core/tests/test_gradients.py
Class Name:
Method Name: test_unique_bvals_deprecated


Project Name: nipy/dipy
Commit Name: 3fdddc4841d9f338dcdd90cc50d6c3fa9bd22908
Time: 2021-03-17
Author: skab12@gmail.com
File Name: dipy/reconst/tests/test_csdeconv.py
Class Name:
Method Name: test_response_from_mask_deprecated


Project Name: nipy/dipy
Commit Name: 3fdddc4841d9f338dcdd90cc50d6c3fa9bd22908
Time: 2021-03-17
Author: skab12@gmail.com
File Name: dipy/core/tests/test_gradients.py
Class Name:
Method Name: test_unique_bvals_deprecated


Project Name: nipy/dipy
Commit Name: 3fdddc4841d9f338dcdd90cc50d6c3fa9bd22908
Time: 2021-03-17
Author: skab12@gmail.com
File Name: dipy/reconst/tests/test_csdeconv.py
Class Name:
Method Name: test_auto_response_deprecated