Skip to content

Commit 244bc37

Browse files
committed
FIX: Minor ECAT cleanups
1 parent 1a0d949 commit 244bc37

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

nibabel/ecat.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def _check_affines(self):
561561
i = iter(affs)
562562
first = i.next()
563563
for item in i:
564-
if not np.all(first == item):
564+
if not np.allclose(first, item):
565565
return False
566566
return True
567567

@@ -760,7 +760,7 @@ def __init__(self, dataobj, affine, header,
760760
761761
Parameters
762762
----------
763-
dataabj : array-like
763+
dataobj : array-like
764764
image data
765765
affine : None or (4,4) array-like
766766
homogeneous affine giving relationship between voxel coords and
@@ -811,6 +811,7 @@ def __init__(self, dataobj, affine, header,
811811
file_map = self.__class__.make_file_map()
812812
self.file_map = file_map
813813
self._data_cache = None
814+
self._fdata_cache = None
814815

815816
@property
816817
def affine(self):

0 commit comments

Comments
 (0)