Skip to content
Snippets Groups Projects
Commit 2ecdee6b authored by Paul McCarthy's avatar Paul McCarthy
Browse files

If Image(loadData=True), threaded/indexed arguments are ignored.

parent 2adb5711
No related branches found
No related tags found
No related merge requests found
......@@ -406,12 +406,13 @@ class Image(Nifti1, notifier.Notifier):
:arg indexed: If ``True``, and the file is gzipped, it is opened
using the :mod:`indexed_gzip` package. Otherwise the
file is opened by ``nibabel``.
file is opened by ``nibabel``. Ignored if ``loadData``
is ``True``.
:arg threaded: If ``True``, the :class:`.ImageWrapper` will use a
separate thread for data range calculation. Defaults
to ``False``.
to ``False``. Ignored if ``loadData`` is ``True``.
"""
import nibabel as nib
......@@ -420,6 +421,10 @@ class Image(Nifti1, notifier.Notifier):
dataSource = None
fileobj = None
if loadData:
indexed = False
threaded = False
# The image parameter may be the name of an image file
if isinstance(image, six.string_types):
......
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