be5bfc2ed3657ddf103a1ca91bd7b66190877417,dipy/io/gradients.py,,read_bvals_bvecs,#Any#Any#,8
Before Change
if min(bvecs.shape) != 3:
raise IOError("bvec file should have three rows")
if bvecs.ndim != 2:
raise IOError("bvec file should be saved as a two dimensional array")
if bvecs.shape[1] > bvecs.shape[0]:
bvecs = bvecs.T
// If bvals is None, you don"t need to check that they have the same shape:
After Change
if 3 not in bvecs.shape:
raise IOError("bvec file should have three rows")
if bvecs.ndim != 2:
bvecs = bvecs [None, ...]
bvals = bvals[None, ...]
msg = "Only 1 direction detected on your bvec file. For diffusion "
msg += "dataset, it is recommended to have minimum 3 directions."
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: nipy/dipy
Commit Name: be5bfc2ed3657ddf103a1ca91bd7b66190877417
Time: 2020-10-17
Author: skab12@gmail.com
File Name: dipy/io/gradients.py
Class Name:
Method Name: read_bvals_bvecs
Project Name: probcomp/bayeslite
Commit Name: 047c1206650c6524075e6509809f9810f91548d4
Time: 2015-08-25
Author: riastradh+probcomp@csail.mit.edu
File Name: src/read_csv.py
Class Name:
Method Name: bayesdb_read_csv
Project Name: chartbeat-labs/textacy
Commit Name: 495536f58a0b994082d6764d3dd7f994640478be
Time: 2016-07-18
Author: burton@chartbeat.com
File Name: textacy/fileio/utils.py
Class Name:
Method Name: open_sesame