Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FSL
fslpy
Commits
2ecdee6b
Commit
2ecdee6b
authored
8 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
If Image(loadData=True), threaded/indexed arguments are ignored.
parent
2adb5711
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/image.py
+7
-2
7 additions, 2 deletions
fsl/data/image.py
with
7 additions
and
2 deletions
fsl/data/image.py
+
7
−
2
View file @
2ecdee6b
...
@@ -406,12 +406,13 @@ class Image(Nifti1, notifier.Notifier):
...
@@ -406,12 +406,13 @@ class Image(Nifti1, notifier.Notifier):
:arg indexed: If ``True``, and the file is gzipped, it is opened
:arg indexed: If ``True``, and the file is gzipped, it is opened
using the :mod:`indexed_gzip` package. Otherwise the
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
:arg threaded: If ``True``, the :class:`.ImageWrapper` will use a
separate thread for data range calculation. Defaults
separate thread for data range calculation. Defaults
to ``False``.
to ``False``.
Ignored if ``loadData`` is ``True``.
"""
"""
import
nibabel
as
nib
import
nibabel
as
nib
...
@@ -420,6 +421,10 @@ class Image(Nifti1, notifier.Notifier):
...
@@ -420,6 +421,10 @@ class Image(Nifti1, notifier.Notifier):
dataSource
=
None
dataSource
=
None
fileobj
=
None
fileobj
=
None
if
loadData
:
indexed
=
False
threaded
=
False
# The image parameter may be the name of an image file
# The image parameter may be the name of an image file
if
isinstance
(
image
,
six
.
string_types
):
if
isinstance
(
image
,
six
.
string_types
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment