c125ff56ac608ef7239c6f3a33cb0241d63175f3,integration_test/packages/run_nibabel.py,NibabelSample,create_sample_data,#NibabelSample#,263

Before Change


        img.to_filename(file_name)
        file_name = os.path.join(self.data_dir, "spm2_image")
        img = nib.spm2analyze.Spm2AnalyzeImage(self.get_data(), np.eye(4))
        img.to_filename(file_name)
        file_name = os.path.join(self.data_dir, "spm99_image")
        img = nib.spm99analyze.Spm99AnalyzeImage(self.get_data(), np.eye(4))
        img.to_filename(file_name)

After Change


        nifti1_img.to_filename(file_name)
        file_name = os.path.join(self.data_dir, "nifti2_image")
        nifti2_img = nib.Nifti2Image(self.get_data(), self.get_affine())
        nifti2_img.to_filename(file_name)
        file_name = os.path.join(self.data_dir, "spm2_image")
        spm2_img = nib.spm2analyze.Spm2AnalyzeImage(self.get_data(),
                                                    np.eye(4))
        spm2_img.to_filename(file_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 2

Instances


Project Name: recipy/recipy
Commit Name: c125ff56ac608ef7239c6f3a33cb0241d63175f3
Time: 2016-10-26
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: create_sample_data