6c6570915dfe57012c23a25057c464e005bcede8,dipy/core/gradients.py,GradientTable,__init__,#GradientTable#Any#Any#Any#Any#Any#Any#,4

Before Change


        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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: nipy/dipy
Commit Name: 6c6570915dfe57012c23a25057c464e005bcede8
Time: 2012-07-09
Author: arokem@gmail.com
File Name: dipy/core/gradients.py
Class Name: GradientTable
Method Name: __init__


Project Name: nipy/dipy
Commit Name: b9aac6f4f32d755595c577c5fc5ac0936a914031
Time: 2020-01-03
Author: skab12@gmail.com
File Name: doc/examples/restore_dti.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: b9aac6f4f32d755595c577c5fc5ac0936a914031
Time: 2020-01-03
Author: skab12@gmail.com
File Name: doc/examples/reconst_csd.py
Class Name:
Method Name:


Project Name: nipy/dipy
Commit Name: 6c6570915dfe57012c23a25057c464e005bcede8
Time: 2012-07-09
Author: arokem@gmail.com
File Name: dipy/core/gradients.py
Class Name: GradientTable
Method Name: __init__