Skip to content

MNT: Fix spacing and expected error types #1132

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 2 commits into from
Aug 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion nibabel/ecat.py
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ def get_data_dtype(self, frame):
def shape(self):
x, y, z = self._subheader.get_shape()
nframes = self._subheader.get_nframes()
return(x, y, z, nframes)
return (x, y, z, nframes)

def get_mlist(self):
""" get access to the mlist
Expand Down
7 changes: 6 additions & 1 deletion nibabel/tests/test_viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ def test_viewer():
v.clim = (0, 3)
with pytest.raises(ValueError):
OrthoSlicer3D.clim.fset(v, (0.,)) # bad limits
with pytest.raises(ValueError):
with pytest.raises(
(
ValueError, # MPL3.5 and lower
KeyError, # MPL3.6 and higher
)
):
OrthoSlicer3D.cmap.fset(v, 'foo') # wrong cmap

# decrement/increment volume numbers via keypress
Expand Down