Skip to content

Commit 4babf08

Browse files
committed
ENH: Add units/raise_unknown to MINC/ECAT get_zooms
1 parent 233f7f0 commit 4babf08

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
@@ -578,7 +578,7 @@ def get_frame_affine(self, frame=0):
578578
z_off])
579579
return aff
580580

581-
def get_zooms(self, frame=0):
581+
def get_zooms(self, frame=0, units='norm', raise_unknown=False):
582582
"""returns zooms ...pixdims"""
583583
subhdr = self.subheaders[frame]
584584
x_zoom = subhdr['x_pixel_size'] * 10

nibabel/minc1.py

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

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

0 commit comments

Comments
 (0)