Skip to content

Commit 3849178

Browse files
committed
ENH: Add units/raise_unknown to MINC/ECAT get_zooms
1 parent 0b6a5dd commit 3849178

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
@@ -582,7 +582,7 @@ def get_frame_affine(self, frame=0):
582582
z_off])
583583
return aff
584584

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

nibabel/minc1.py

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

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

0 commit comments

Comments
 (0)