We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4459cef commit ba1243eCopy full SHA for ba1243e
nibabel/viewers.py
@@ -446,12 +446,12 @@ def _on_keypress(self, event):
446
self.close()
447
elif event.key in ["=", '+']:
448
# increment volume index
449
- new_idx = min(self._data_idx[3]+1, self.n_volumes)
+ new_idx = min(self._data_idx[3] + 1, self.n_volumes)
450
self._set_volume_index(new_idx, update_slices=True)
451
self._draw()
452
elif event.key == '-':
453
# decrement volume index
454
- new_idx = max(self._data_idx[3]-1, 0)
+ new_idx = max(self._data_idx[3] - 1, 0)
455
456
457
0 commit comments