@@ -736,8 +736,8 @@ def to_mapping(self, dim):
736
736
for name , voxels , vertices in zip (self .name , self .voxels , self .vertices ):
737
737
cifti_voxels = cifti2 .Cifti2VoxelIndicesIJK (voxels )
738
738
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 ))
741
741
mim .append (element )
742
742
return mim
743
743
@@ -783,7 +783,8 @@ def __len__(self):
783
783
def __eq__ (self , other ):
784
784
if (self .__class__ != other .__class__ or len (self ) != len (other ) or
785
785
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 ))):
787
788
return False
788
789
if self .affine is not None :
789
790
if (
@@ -857,7 +858,7 @@ def __getitem__(self, item):
857
858
if isinstance (item , integer_types ):
858
859
return self .get_element (item )
859
860
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 )
861
862
862
863
def get_element (self , index ):
863
864
"""
0 commit comments