6286ba014120ce05b49302007a0a28feed6d98c4,ants/segmentation/joint_label_fusion.py,,joint_label_fusion,#,20

Before Change


    if not doJif:
        if len(label_list) != len(atlas_list):
            raise ValueError("len(label_list) != len(atlas_list)")
        inlabs = np.sort(np.unique(label_list[0][target_image_mask != 0]))
        mymask = target_image_mask.clone()
    else:
        mymask = target_image_mask

After Change


    if not doJif:
        if len(label_list) != len(atlas_list):
            raise ValueError("len(label_list) != len(atlas_list)")
        if no_zeroes:
            for label in label_list:
                target_image_mask[label == 0] = 0
        inlabs = set()
        for label in label_list:
            values = np.unique(label[target_image_mask != 0 and label != 0])
            inlabs = inlabs.union(values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ANTsX/ANTsPy
Commit Name: 6286ba014120ce05b49302007a0a28feed6d98c4
Time: 2020-09-10
Author: stnava@gmail.com
File Name: ants/segmentation/joint_label_fusion.py
Class Name:
Method Name: joint_label_fusion


Project Name: akkana/scripts
Commit Name: 6aa485ed9568c850d2cfb8987237c066ea93d7ef
Time: 2020-04-09
Author: akkana@shallowsky.com
File Name: vote411export.py
Class Name:
Method Name: convert_vote411_file


Project Name: tensorly/tensorly
Commit Name: f937bbf05fed3d436cd07d159b451d448fe6eba2
Time: 2021-02-06
Author: ameyer@ucla.edu
File Name: tensorly/backend/mxnet_backend.py
Class Name: MxnetBackend
Method Name: sort