ae0f00f349577063d557c629f8f774e7d0b7b400,dipy/denoise/tests/test_patch2self.py,,test_patch2self_random_noise,#,16

Before Change


    S0nb = p2s.patch2self(S0)

    assert_(S0nb.min() > S0.min())
    assert_(S0nb.max() < S0.max())
    assert_equal(np.round(S0nb.mean()), 100)

    S0nb = p2s.patch2self(S0)

After Change


def test_patch2self_random_noise():
    S0 = 100 + 2 * np.random.standard_normal((50, 50, 50, 100))
    
    bvals = np.repeat(100, 100)
    S0nb = p2s.patch2self(S0, bvals, model="ols")

    assert_greater(S0nb.min(), S0.min())
    assert_less(S0nb.max(), S0.max())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: ae0f00f349577063d557c629f8f774e7d0b7b400
Time: 2020-11-24
Author: shreyasfadnavis@gmail.com
File Name: dipy/denoise/tests/test_patch2self.py
Class Name:
Method Name: test_patch2self_random_noise


Project Name: PyMVPA/PyMVPA
Commit Name: 49e684b67400f1ac00862db2e8394ebee1b914c8
Time: 2015-04-14
Author: michael.hanke@gmail.com
File Name: mvpa2/tests/test_group_clusterthr.py
Class Name:
Method Name: test_pval


Project Name: facebookresearch/Horizon
Commit Name: 20c7dac379a56a69fc0a2fa56a2729eeced2c5ac
Time: 2020-04-22
Author: czxttkl@fb.com
File Name: reagent/models/seq2slate_reward.py
Class Name: Seq2SlateRewardNet
Method Name: _convert_seq2slate_to_reward_model_format