Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
3a6b6d92
Commit
3a6b6d92
authored
Feb 08, 2019
by
Paul McCarthy
🚵
Browse files
Merge branch 'maint/1.x' into v1.13
parents
af858116
d1938fc7
Pipeline
#3366
passed with stages
in 1 minute and 42 seconds
Changes
4
Pipelines
2
Show whitespace changes
Inline
Side-by-side
CHANGELOG.rst
View file @
3a6b6d92
...
...
@@ -2,6 +2,20 @@ This document contains the ``fslpy`` release history in reverse chronological
order.
1.13.3 (Friday February 8th 2019)
---------------------------------
Fixed
^^^^^
* Fixed an issue with the `.dicom.loadSeries` using memory-mapping for
image files that would subsequently be deleted.
* Fixed an issue in the :class:`.GiftiMesh` class, where
``numpy``/``nibabel`` was returning read-only index arrays.
1.13.2 (Friday November 30th 2018)
----------------------------------
...
...
fsl/data/dicom.py
View file @
3a6b6d92
...
...
@@ -236,9 +236,13 @@ def loadSeries(series):
sp
.
call
(
cmd
.
split
(),
stdout
=
devnull
,
stderr
=
devnull
)
files
=
glob
.
glob
(
op
.
join
(
td
,
'{}*.nii'
.
format
(
snum
)))
images
=
[
nib
.
load
(
f
)
for
f
in
files
]
# Force-load images into memory
[
i
.
get_data
()
for
i
in
images
]
images
=
[
nib
.
load
(
f
,
mmap
=
False
)
for
f
in
files
]
# copy images so nibabel no longer
# refs to the files (as they will
# be deleted), and use get_data()
# to force-load the image data.
images
=
[
nib
.
Nifti1Image
(
i
.
get_data
(),
None
,
i
.
header
)
for
i
in
images
]
return
[
DicomImage
(
i
,
series
,
dcmdir
,
name
=
desc
)
for
i
in
images
]
fsl/data/gifti.py
View file @
3a6b6d92
...
...
@@ -195,8 +195,8 @@ def loadGiftiMesh(filename):
raise
ValueError
(
'{}: GIFTI surface files must contain '
'exactly one triangle array'
.
format
(
filename
))
vertices
=
pointsets
[
0
].
data
indices
=
triangles
[
0
].
data
vertices
=
np
.
array
(
pointsets
[
0
].
data
)
indices
=
np
.
array
(
triangles
[
0
].
data
)
return
gimg
,
vertices
,
indices
...
...
fsl/version.py
View file @
3a6b6d92
...
...
@@ -47,7 +47,7 @@ import re
import
string
__version__
=
'1.13.
2
'
__version__
=
'1.13.
3
'
"""Current version number, as a string. """
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment