We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fc46fe + 2ea3a3a commit 4c24f78Copy full SHA for 4c24f78
findoutlie/metrics.py
@@ -31,10 +31,8 @@ def dvars(img):
31
# But solve it any way you can.
32
# This is a placeholder, replace it to write your solution.
33
data = img.get_fdata()
34
- vol_shape = data.shape[:-1]
35
- n_voxels = np.prod(vol_shape)
36
-
37
- voxel_by_time = np.reshape(data, (n_voxels, data.shape[-1]))
+
+ voxel_by_time = np.reshape(data, (-1, data.shape[-1]))
38
39
vol_diff = voxel_by_time[..., 1:] - voxel_by_time[..., :-1] # 2D array
40
# print(vol_diff.shape())
0 commit comments