e43527134cb2775a68d796a974048b45cc55c4bb,medpy/io/header.py,,get_pixel_spacing,#Any#,32

Before Change


    try:
        if __is_header_nibabel(hdr):
            return __get_pixel_spacing_nibabel(hdr)
        elif __is_header_pydicom(hdr):
            return __get_pixel_spacing_pydicom(hdr)
        elif __is_header_itk(hdr):
            return __get_pixel_spacing_itk(hdr)
        else:
            raise Exception()
    except Exception:
        raise AttributeError("The provided header {} is of unknown type or does not support queries for pixel spacing.".format(type(hdr)))

def get_offset(hdr):

After Change



def get_pixel_spacing(hdr):
    rDepreciated synonym of `~medpy.io.header.get_voxel_spacing`.
    warnings.warn("get_pixel_spacing() is depreciated, use set_voxel_spacing() instead", category=DeprecationWarning)
    return get_voxel_spacing(hdr)

def get_offset(hdr):
    r
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: loli/medpy
Commit Name: e43527134cb2775a68d796a974048b45cc55c4bb
Time: 2019-02-10
Author: oskar.maier@googlemail.com
File Name: medpy/io/header.py
Class Name:
Method Name: get_pixel_spacing


Project Name: pysb/pysb
Commit Name: 8c4162c3666a2b238b2b60c3f94bb8102c4ef6cf
Time: 2016-04-05
Author: bachmanjohn@gmail.com
File Name: pysb/kappa.py
Class Name:
Method Name: set_kappa_path


Project Name: loli/medpy
Commit Name: e43527134cb2775a68d796a974048b45cc55c4bb
Time: 2019-02-10
Author: oskar.maier@googlemail.com
File Name: medpy/io/header.py
Class Name:
Method Name: set_pixel_spacing