8000 FIX: Python 3 compatibility issue while loading multiframe ECAT files by effigies · Pull Request #777 · nipy/nibabel · GitHub
[go: up one dir, main page]

Skip to content

FIX: Python 3 compatibility issue while loading multiframe ECAT files #777

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 2, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
FIX: Minor ECAT cleanups
  • Loading branch information
effigies committed Jul 28, 2019
commit 244bc37a89f8c924656c21e22c1991513128c0a1
5 changes: 3 additions & 2 deletions nibabel/ecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ def _check_affines(self):
i = iter(affs)
first = i.next()
for item in i:
if not np.all(first == item):
if not np.allclose(first, item):
return False
return True

Expand Down Expand Up @@ -760,7 +760,7 @@ def __init__(self, dataobj, affine, header,

Parameters
----------
dataabj : array-like
dataobj : array-like
image data
affine : None or (4,4) array-like
homogeneous affine giving relationship between voxel coords and
Expand Down Expand Up @@ -811,6 +811,7 @@ def __init__(self, dataobj, affine, header,
file_map = self.__class__.make_file_map()
self.file_map = file_map
self._data_cache = None
self._fdata_cache = None

@property
def affine(self):
Expand Down
30AA
0