Skip to content

Commit e338802

Browse files
authored
Merge pull request #730 from HippocampusGirl/fix-tuple-indexing
[BACKPORT] FIX: Stop relying on deprecated indexing behavior
2 parents 42df2bb + 5f2b8c9 commit e338802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

niworkflows/viz/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,7 @@ def transform_to_2d(data, max_axis):
457457

458458
# take the values where the absolute value of the projection
459459
# is the highest
460-
maximum_intensity_data = data[inds]
460+
maximum_intensity_data = data[tuple(inds)]
461461

462462
return np.rot90(maximum_intensity_data)
463463

0 commit comments

Comments
 (0)