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
581598c2
Commit
581598c2
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
A warning should be printed when running against nibabel 2.1.0
parent
2598c5be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/data/image.py
+6
-0
6 additions, 0 deletions
fsl/data/image.py
with
6 additions
and
0 deletions
fsl/data/image.py
+
6
−
0
View file @
581598c2
...
@@ -1396,6 +1396,9 @@ def loadIndexedImageFile(filename):
...
@@ -1396,6 +1396,9 @@ def loadIndexedImageFile(filename):
return
image
,
fobj
return
image
,
fobj
@deprecation.deprecated
(
deprecated_in
=
'
1.3.0
'
,
removed_in
=
'
2.0.0
'
,
details
=
'
Upgrade to nibabel 2.2.0
'
)
def
read_segments
(
fileobj
,
segments
,
n_bytes
):
def
read_segments
(
fileobj
,
segments
,
n_bytes
):
"""
This function is used in place of the
"""
This function is used in place of the
``nibabel.fileslice.read_segments`` function to ensure thread-safe read
``nibabel.fileslice.read_segments`` function to ensure thread-safe read
...
@@ -1411,6 +1414,9 @@ def read_segments(fileobj, segments, n_bytes):
...
@@ -1411,6 +1414,9 @@ def read_segments(fileobj, segments, n_bytes):
This implementation protects the seek/read pairs with a
This implementation protects the seek/read pairs with a
``threading.Lock``, which is added to ``IndexedGzipFile`` instances that
``threading.Lock``, which is added to ``IndexedGzipFile`` instances that
are created in the :func:`loadIndexedImageFile` function.
are created in the :func:`loadIndexedImageFile` function.
.. note:: This patch is not required in nibabel 2.2.0 and newer. It will
be removed from ``fslpy`` in version 2.0.0.
"""
"""
from
mmap
import
mmap
from
mmap
import
mmap
...
...
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