self.b0_threshold = b0_threshold
if hasattr(bvals,"shape") and hasattr(bvals,"shape"):
self.bvals, self.bvecs = bvals, bvecs
if hasattr(bvals,"shape") and bvecs is None:
After Change
if isinstance(bvals, basestring):
bvals, _ = io.read_bvals_bvecs(bvals, None)
if isinstance(bvecs, basestring):
_, bvecs = io.read_bvals_bvecs(None, bvecs)
if isinstance(bvals, np.ndarray):
self.bvals = bvals
if isinstance(bvecs, np.ndarray):