50f903c2731625fcb15222036f82c8e78918a90b,invesalius/reader/dicom.py,Image,SetParser,#Image#,1947

Before Change


            except(AttributeError):
                spacing = [1, 1, 1]
        else:
            try:
                spacing.append(1.5)
            except(AttributeError):
                spacing = [1, 1, 1]

After Change


            self.position = [1, 1, 1]

        self.number = parser.GetImageNumber()
        self.spacing = list(parser.GetPixelSpacing())
        self.orientation_label = parser.GetImageOrientationLabel()
        self.file = parser.filename
        self.time = parser.GetImageTime()
        self.type = parser.GetImageType()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: invesalius/invesalius3
Commit Name: 50f903c2731625fcb15222036f82c8e78918a90b
Time: 2019-10-22
Author: totonixsame@gmail.com
File Name: invesalius/reader/dicom.py
Class Name: Image
Method Name: SetParser


Project Name: DistrictDataLabs/yellowbrick
Commit Name: ca14cf72e3e4bd3a6136cafad8701ac41f48f09b
Time: 2018-08-25
Author: davidwaterman@gmail.com
File Name: yellowbrick/cluster/elbow.py
Class Name: KElbowVisualizer
Method Name: __init__


Project Name: nilmtk/nilmtk
Commit Name: 72f3f5bf50ed2d91cdcfbe2cf47120a2df8883cd
Time: 2014-11-26
Author: jack-list@xlk.org.uk
File Name: nilmtk/elecmeter.py
Class Name: ElecMeter
Method Name: _get_stat_from_cache_or_compute