diff --git a/fsl/data/image.py b/fsl/data/image.py index d2d7e967a3d7e577676e7b6a1e150823f3c8972a..1eece553bffe3ea6efcfef787466fa6dcd856d8d 100644 --- a/fsl/data/image.py +++ b/fsl/data/image.py @@ -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):