5b0238d247d238b768a5729dd7a5fda931bf2fb1,dipy/io/tests/test_io_gradients.py,,test_read_bvals_bvecs,#,13

Before Change


        // These bvecs are saved as one long array:
        new_bvecs2 = np.ravel(bvecs)
        with open("test_bv_file2.npy", "w") as bv_file2:
            print("FILENAME:", bv_file2.name)
            np.save(bv_file2.name, new_bvecs2)
        npt.assert_raises(IOError, read_bvals_bvecs, fbvals, "test_bv_file2.npy")

        // There are less bvecs than bvals:

After Change



        bv_single_volume = "test_single_volume.txt"
        with open(bv_single_volume, "w") as f:
            f.write("0 0 0\n")
        bval_single_volume = "test_single_volume_2.txt"
        with open(bval_single_volume, "w") as f:
            f.write("0\n")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nipy/dipy
Commit Name: 5b0238d247d238b768a5729dd7a5fda931bf2fb1
Time: 2020-10-17
Author: skab12@gmail.com
File Name: dipy/io/tests/test_io_gradients.py
Class Name:
Method Name: test_read_bvals_bvecs


Project Name: A2Zadeh/CMU-MultimodalSDK
Commit Name: bd0ed1ab82b3fe29cbf9c9605ff1beadd9442ee0
Time: 2018-04-23
Author: justin1904@live.com
File Name: mmdata/dataloader.py
Class Name: MOSI
Method Name: __init__


Project Name: A2Zadeh/CMU-MultimodalSDK
Commit Name: bd0ed1ab82b3fe29cbf9c9605ff1beadd9442ee0
Time: 2018-04-23
Author: justin1904@live.com
File Name: mmdata/dataloader.py
Class Name: MOSEI
Method Name: __init__