Skip to content

Commit 04a4b45

Browse files
committed
FIX: Use other.volume_mask to index other.voxel
1 parent 1bc459e commit 04a4b45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nibabel/cifti2/cifti2_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def __eq__(self, other):
612612
self.volume_shape == other.volume_shape) and
613613
self.nvertices == other.nvertices and
614614
np.array_equal(self.name, other.name) and
615-
np.array_equal(self.voxel[self.volume_mask], other.voxel[self.volume_mask]) and
615+
np.array_equal(self.voxel[self.volume_mask], other.voxel[other.volume_mask]) and
616616
np.array_equal(self.vertex[self.surface_mask], other.vertex[other.surface_mask])
617617
)
618618

0 commit comments

Comments
 (0)