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 0507393 commit 2d29dbaCopy full SHA for 2d29dba
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):
+ def __getitem__(self, idx=None):
660
''' No slicing or dictionary interface for images
661
'''
662
raise TypeError("Cannot slice image objects; consider slicing image "
0 commit comments