Skip to content

Commit 55a07f4

Browse files
committed
ENH: Add units/raise_unknown to MINC/ECAT get_zooms
1 parent 18e3154 commit 55a07f4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nibabel/ecat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ def get_frame_affine(self, frame=0):
581581
z_off])
582582
return aff
583583

584-
def get_zooms(self, frame=0):
584+
def get_zooms(self, frame=0, units='norm', raise_unknown=False):
585585
"""returns zooms ...pixdims"""
586586
subhdr = self.subheaders[frame]
587587
x_zoom = subhdr['x_pixel_size'] * 10

nibabel/minc1.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def get_data_dtype(self):
9292
def get_data_shape(self):
9393
return self._image.data.shape
9494

95-
def get_zooms(self):
95+
def get_zooms(self, units='norm', raise_unknown=False):
9696
""" Get real-world sizes of voxels """
9797
# zooms must be positive; but steps in MINC can be negative
9898
return tuple([abs(float(dim.step)) if hasattr(dim, 'step') else 1.0

0 commit comments

Comments
 (0)