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
Michiel Cottaar
fslpy
Commits
a0862c6c
Commit
a0862c6c
authored
Feb 23, 2021
by
Paul McCarthy
🚵
Browse files
MNT: Numpy deprecation warnings
parent
a473baa7
Changes
2
Hide whitespace changes
Inline
Side-by-side
fsl/data/mesh.py
View file @
a0862c6c
...
...
@@ -573,7 +573,7 @@ class Mesh(notifier.Notifier, meta.Meta):
# sort by ray. I'm Not sure if this is
# needed - does trimesh do it for us?
rayIdxs
=
np
.
asarray
(
np
.
argsort
(
rays
)
,
np
.
int
)
rayIdxs
=
np
.
asarray
(
np
.
argsort
(
rays
))
locs
=
locs
[
rayIdxs
]
tris
=
tris
[
rayIdxs
]
...
...
fsl/transform/nonlinear.py
View file @
a0862c6c
...
...
@@ -280,7 +280,7 @@ class DeformationField(NonLinearTransform):
# Mask out the coordinates
# that are out of bounds of
# the deformation field
voxels
=
np
.
round
(
voxels
).
astype
(
np
.
int
)
voxels
=
np
.
round
(
voxels
).
astype
(
np
.
int
32
)
voxmask
=
(
voxels
>=
[
0
,
0
,
0
])
&
(
voxels
<
self
.
shape
[:
3
])
voxmask
=
voxmask
.
all
(
axis
=
1
)
voxels
=
voxels
[
voxmask
]
...
...
@@ -508,9 +508,9 @@ class CoefficientField(NonLinearTransform):
u
=
np
.
remainder
(
i
,
1
)
v
=
np
.
remainder
(
j
,
1
)
w
=
np
.
remainder
(
k
,
1
)
i
=
np
.
floor
(
i
).
astype
(
np
.
int
)
j
=
np
.
floor
(
j
).
astype
(
np
.
int
)
k
=
np
.
floor
(
k
).
astype
(
np
.
int
)
i
=
np
.
floor
(
i
).
astype
(
np
.
int
32
)
j
=
np
.
floor
(
j
).
astype
(
np
.
int
32
)
k
=
np
.
floor
(
k
).
astype
(
np
.
int
32
)
disps
=
np
.
zeros
(
coords
.
shape
)
...
...
Write
Preview
Markdown
is supported
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