Skip to content
Snippets Groups Projects
Commit c9cb52f7 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Make sure shapes float

parent f3898989
No related branches found
No related tags found
No related merge requests found
...@@ -1179,8 +1179,8 @@ class Image(Nifti): ...@@ -1179,8 +1179,8 @@ class Image(Nifti):
data = self[sliceobj] data = self[sliceobj]
data = np.array(data, dtype=dtype, copy=False) data = np.array(data, dtype=dtype, copy=False)
oldShape = np.array(data.shape) oldShape = np.array(data.shape, dtype=np.float)
newShape = np.array(newShape) newShape = np.array(newShape, dtype=np.float)
if not np.all(np.isclose(oldShape, newShape)): if not np.all(np.isclose(oldShape, newShape)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment