e43527134cb2775a68d796a974048b45cc55c4bb,medpy/io/header.py,,get_pixel_spacing,#Any#,32
Before Change
AttributeError
If the header is of an unknown type or does not support the reading of the pixel spacing.
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):
r
Extracts the image offset from an image header.
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
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: 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
Project Name: KrishnaswamyLab/PHATE
Commit Name: f2aa331b7fc5bf3739b3b78f8ec06262e0e69ba6
Time: 2018-04-12
Author: burkhardt.d.b@gmail.com
File Name: Python/phate/io.py
Class Name:
Method Name: load_10X