52bdab14484a69594976e84afc70a0790f679588,pynets/registration/register.py,FmriReg,atlas2t1wmni_align,#FmriReg#Any#Any#Any#,766

Before Change


        // Set intensities to int
        atlas_img = nib.load(aligned_atlas_t1mni)
        atlas_data = np.around(np.asarray(atlas_img.dataobj)).astype("int16")
        nib.save(nib.Nifti1Image(atlas_data.astype("int16"), affine=atlas_img.affine,
                                 header=atlas_img.header), aligned_atlas_t1mni)
        os.system("fslmaths {} -mas {} {}".format(aligned_atlas_t1mni, gm_mask_mni, aligned_atlas_t1mni_gm))
        atlas_img.uncache()

        return aligned_atlas_t1mni_gm

After Change


            img.header.extensions.clear()
        nib.save(img, aligned_atlas_t1mni)

        gm_mask_mni_img = nib.load(gm_mask_mni)
        if len(gm_mask_mni_img.header.extensions) != 0:
            gm_mask_mni_img.header.extensions.clear()
        nib.save(gm_mask_mni_img, gm_mask_mni)
        os.system("fslmaths {} -mas {} {}".format(aligned_atlas_t1mni, gm_mask_mni, aligned_atlas_t1mni_gm))

        atlas_img.uncache()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dPys/PyNets
Commit Name: 52bdab14484a69594976e84afc70a0790f679588
Time: 2019-12-28
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: FmriReg
Method Name: atlas2t1wmni_align


Project Name: tensorlayer/tensorlayer
Commit Name: 5307ae3f7d1c4b6bd2285f946db82d944f3844db
Time: 2019-02-19
Author: jingqing.zhang15@imperial.ac.uk
File Name: examples/text_classification/tutorial_imdb_fasttext.py
Class Name:
Method Name: train_test_and_save_model


Project Name: dPys/PyNets
Commit Name: 52bdab14484a69594976e84afc70a0790f679588
Time: 2019-12-28
Author: dpisner@utexas.edu
File Name: pynets/registration/register.py
Class Name: DmriReg
Method Name: atlas2t1w2dwi_align