// 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")