fb621e6138f480ae5f14f35c040a60e577d9ab42,dipy/tracking/life.py,FiberModel,setup,#FiberModel#Any#Any#Any#Any#,340

Before Change


            for f_idx in v2f[v_idx]:
                for node_idx in v2fn[f_idx][v_idx]:
                    // Sum the signal from each node of the fiber in that voxel:
                    f_matrix_sig[keep_ct:keep_ct+n_bvecs] = \
        f_matrix_sig[keep_ct:keep_ct+n_bvecs] + fiber_signal[f_idx][node_idx]
                // For each fiber-voxel combination, we now store the row/column
                // indices in the pre-allocated linear arrays

After Change


        // In each voxel:
        for v_idx in xrange(vox_coords.shape[0]):
            // dbg:
            if not np.mod(v_idx, 10000):
                print("voxel %s"%(100*float(v_idx)/n_vox))
            //For each fiber in that voxel:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: nipy/dipy
Commit Name: fb621e6138f480ae5f14f35c040a60e577d9ab42
Time: 2015-03-16
Author: arokem@gmail.com
File Name: dipy/tracking/life.py
Class Name: FiberModel
Method Name: setup


Project Name: ultralytics/yolov3
Commit Name: cfe354064cd599ae6ea902ffaa4dbd106d3a40fb
Time: 2019-04-21
Author: glenn.jocher@ultralytics.com
File Name: utils/utils.py
Class Name:
Method Name: scale_coords


Project Name: brainiak/brainiak
Commit Name: 8a6ecfdb1759ad2f67492a983ec5f90b5c5dd3ae
Time: 2017-08-30
Author: lcnature@users.noreply.github.com
File Name: brainiak/reprsimil/brsa.py
Class Name: GBRSA
Method Name: _set_SNR_grids