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])