Skip to content
Snippets Groups Projects
Commit 6f36630f authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Making sure that Image(indexed=True) works without indexed_gzip present

parent 4a38ff04
No related branches found
No related tags found
No related merge requests found
...@@ -1389,10 +1389,17 @@ def loadIndexedImageFile(filename): ...@@ -1389,10 +1389,17 @@ def loadIndexedImageFile(filename):
Returns a tuple containing the ``nibabel`` NIFTI image, and the open Returns a tuple containing the ``nibabel`` NIFTI image, and the open
``IndexedGzipFile`` handle. ``IndexedGzipFile`` handle.
If ``indexed_gzip`` is not present, the image is loaded normally via
``nibabel.load``.
""" """
import threading import threading
import indexed_gzip as igzip
try:
import indexed_gzip as igzip
except ImportError:
return nib.load(filename), None
log.debug('Loading {} using indexed gzip'.format(filename)) log.debug('Loading {} using indexed gzip'.format(filename))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment