0c6da430326da115149983bc9ac52df76f0e2c3f,integration_test/packages/run_nibabel.py,NibabelSample,nifti2_from_filename,#NibabelSample#,176

Before Change


        Use nibabel.Nifti2Image.from_filename to load nifti2_image.nii.
        
        file_name = os.path.join(self.data_dir, "nifti2_image")
        print(("Loading data:", file_name))
        data = nib.Nifti2Image.from_filename(file_name)
        print(("Data:", data.shape))

    def nifti2_to_filename(self):
        
        Use nibabel.Nifti2Image.to_filename to save out_nifti2_image.nii.

After Change


        Use nibabel.Nifti2Image.from_filename to load nifti2_image.nii.
        
        file_name = os.path.join(self.data_dir, "nifti2_image")
        nib.Nifti2Image.from_filename(file_name)

    def nifti2_to_filename(self):
        
        Use nibabel.Nifti2Image.to_filename to save out_nifti2_image.nii.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 8

Instances


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: nifti2_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: analyze_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: parrec_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: nifti1_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: minc2_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: spm99analyze_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: spm2analyze_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: minc1_from_filename


Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_nibabel.py
Class Name: NibabelSample
Method Name: mgh_from_filename