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 cb0ac6a commit ce1d07fCopy full SHA for ce1d07f
nibabel/spatialimages.py
@@ -656,7 +656,7 @@ def from_image(klass, img):
656
klass.header_class.from_header(img.header),
657
extra=img.extra.copy())
658
659
- def __getitem__(self, idx=None):
+ def __getitem__(self, idx):
660
''' No slicing or dictionary interface for images
661
'''
662
raise TypeError("Cannot slice image objects; consider slicing image "
0 commit comments