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 1e15c98 commit fbd9e6eCopy full SHA for fbd9e6e
nibabel/spatialimages.py
@@ -570,9 +570,11 @@ def __getitem__(self, idx):
570
Use the slicer attribute to perform cropping and subsampling at your
571
own risk.
572
'''
573
- raise TypeError("Cannot slice image objects; consider slicing image "
574
- "array data with `img.dataobj[slice]` or "
575
- "`img.get_data()[slice]`")
+ raise TypeError(
+ "Cannot slice image objects; consider using `img.slicer[slice]` "
+ "to generate a sliced image (see documentation for caveats) or "
576
+ "slicing image array data with `img.dataobj[slice]` or "
577
+ "`img.get_data()[slice]`")
578
579
def orthoview(self):
580
"""Plot the image using OrthoSlicer3D
0 commit comments