449ce796e6f506a28075f16099c986e298141569,pynets/nodemaker.py,,gen_network_parcels,#Any#Any#Any#Any#,288

Before Change


        // Number of parcels:
        par_max = np.ceil(np.max(bna_data_for_coords)).astype("int")
    else:
        bna_data = bna_img.get_data()
        par_max = np.max(bna_data)
    img_stack = []
    ////Set indices
    for idx in range(1, par_max+1):

After Change


    bna_img = nib.load(parlistfile)
    bna_data = np.round(bna_img.get_data(),1)
    ////Get an array of unique parcels
    bna_data_for_coords_uniq = np.unique(bna_data)
    ////Number of parcels:
    par_max = len(bna_data_for_coords_uniq) - 1
    bna_data = bna_data.astype("int16")
    img_stack = []
    for idx in range(1, par_max+1):
        roi_img = bna_data == bna_data_for_coords_uniq[idx].astype("int16")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: dPys/PyNets
Commit Name: 449ce796e6f506a28075f16099c986e298141569
Time: 2017-11-12
Author: dpisner@utexas.edu
File Name: pynets/nodemaker.py
Class Name:
Method Name: gen_network_parcels


Project Name: enthought/chaco
Commit Name: 8150e189ca71e482c4fdadd4345e3c4b4b5a0a68
Time: 2010-04-15
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_line_plot.py
Class Name: ContourLinePlot
Method Name: _update_contours


Project Name: enthought/chaco
Commit Name: 8150e189ca71e482c4fdadd4345e3c4b4b5a0a68
Time: 2010-04-15
Author: pwang@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: enthought/chaco/contour_poly_plot.py
Class Name: ContourPolyPlot
Method Name: _update_polys