Skip to content

Commit 7e419f5

Browse files
authored
[FIX] supress cluttering warning (#931)
supress cluttering warning
1 parent d14ce5e commit 7e419f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

nimare/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ def mm2vox(xyz, affine):
207207
From here:
208208
http://blog.chrisgorgolewski.org/2014/12/how-to-convert-between-voxel-and-mm.html
209209
"""
210-
ijk = nib.affines.apply_affine(np.linalg.inv(affine), xyz).astype(int)
210+
with np.errstate(invalid='ignore'):
211+
ijk = nib.affines.apply_affine(np.linalg.inv(affine), xyz).astype(int)
211212
return ijk
212213

213214

0 commit comments

Comments
 (0)