b138b6bc161afe28bf56f1b76b68861a420a1dda,dipy/io/tests/test_io_gradients.py,,test_read_bvals_bvecs,#,14

Before Change


    npt.assert_raises(IOError, read_bvals_bvecs, fbvecs, fbvecs)

    // All possible delimiters should work
    result = np.array([[32, 45, 54, 54, 54, 55, 55, 34], [32, 45, 54, 54, 54, 55, 55, 34]])
    bvals = read_bvals_bvecs("dummy.txt", None)
    assert_array_equal(result, bvals[0])

After Change


    npt.assert_raises(IOError, read_bvals_bvecs, fbvecs, fbvecs)

    // All possible delimiters should work
    bv_file4 = tempfile.NamedTemporaryFile(delete=False)
    bv_file4.write("66 55 33")
    bv_file4.close()  // Does not close
    bvals = read_bvals_bvecs(f.name, None)
    ans = np.array([66, 55, 33])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: b138b6bc161afe28bf56f1b76b68861a420a1dda
Time: 2018-02-14
Author: kumarashutosh.ee@gmail.com
File Name: dipy/io/tests/test_io_gradients.py
Class Name:
Method Name: test_read_bvals_bvecs


Project Name: home-assistant/home-assistant
Commit Name: 6500cb791588e115a62712199c0cbed626af8f31
Time: 2018-02-13
Author: frederik.bolding@gmail.com
File Name: homeassistant/components/camera/rpi_camera.py
Class Name:
Method Name: setup_platform


Project Name: tsurumeso/waifu2x-chainer
Commit Name: 005489e94217f011b5577472547b1a10760952a2
Time: 2017-03-03
Author: nstm101339@gmail.com
File Name: lib/dataset_sampler.py
Class Name:
Method Name: _worker