Skip to content

Commit 6b55e11

Browse files
RF: made flake8 happy again
1 parent 70588f2 commit 6b55e11

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

nibabel/cifti2/cifti2_axes.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -736,8 +736,8 @@ def to_mapping(self, dim):
736736
for name, voxels, vertices in zip(self.name, self.voxels, self.vertices):
737737
cifti_voxels = cifti2.Cifti2VoxelIndicesIJK(voxels)
738738
element = cifti2.Cifti2Parcel(name, cifti_voxels)
739-
for name, idx_vertices in vertices.items():
740-
element.vertices.append(cifti2.Cifti2Vertices(name, idx_vertices))
739+
for name_vertex, idx_vertices in vertices.items():
740+
element.vertices.append(cifti2.Cifti2Vertices(name_vertex, idx_vertices))
741741
mim.append(element)
742742
return mim
743743

@@ -783,7 +783,8 @@ def __len__(self):
783783
def __eq__(self, other):
784784
if (self.__class__ != other.__class__ or len(self) != len(other) or
785785
not np.array_equal(self.name, other.name) or self.nvertices != other.nvertices or
786-
any(not np.array_equal(vox1, vox2) for vox1, vox2 in zip(self.voxels, other.voxels))):
786+
any(not np.array_equal(vox1, vox2)
787+
for vox1, vox2 in zip(self.voxels, other.voxels))):
787788
return False
788789
if self.affine is not None:
789790
if (
@@ -857,7 +858,7 @@ def __getitem__(self, item):
857858
if isinstance(item, integer_types):
858859
return self.get_element(item)
859860
return self.__class__(self.name[item], self.voxels[item], self.vertices[item],
860-
self.affine, self.volume_shape, self.nvertices)
861+
self.affine, self.volume_shape, self.nvertices)
861862

862863
def get_element(self, index):
863864
"""

0 commit comments

Comments
 (0)