@@ -70,7 +70,7 @@ class Cifti2HeaderError(Exception):
70
70
71
71
CIFTI_MODEL_TYPES = (
72
72
'CIFTI_MODEL_TYPE_SURFACE' , # Modeled using surface vertices
73
- 'CIFTI_MODEL_TYPE_VOXELS' , # Modeled using voxels.
73
+ 'CIFTI_MODEL_TYPE_VOXELS' , # Modeled using voxels
74
74
)
75
75
76
76
CIFTI_SERIESUNIT_TYPES = ('SECOND' , 'HERTZ' , 'METER' , 'RADIAN' )
@@ -662,7 +662,7 @@ def __init__(self, name=None, voxel_indices_ijk=None, vertices=None):
662
662
self .vertices = vertices if vertices is not None else []
663
663
for val in self .vertices :
664
664
if not isinstance (val , Cifti2Vertices ):
665
- raise ValueError (('Cifti2Parcel vertices must be instances of ' ' Cifti2Vertices' ))
665
+ raise ValueError (('Cifti2Parcel vertices must be instances of Cifti2Vertices' ))
666
666
667
667
@property
668
668
def voxel_indices_ijk (self ):
@@ -1237,7 +1237,7 @@ def _validate_new_mim(self, value):
1237
1237
a2md = self ._get_indices_from_mim (value )
1238
1238
if not set (self .mapped_indices ).isdisjoint (a2md ):
1239
1239
raise Cifti2HeaderError (
1240
- 'Indices in this Cifti2MatrixIndicesMap ' ' already mapped in this matrix'
1240
+ 'Indices in this Cifti2MatrixIndicesMap already mapped in this matrix'
1241
1241
)
1242
1242
1243
1243
def __setitem__ (self , key , value ):
@@ -1412,7 +1412,13 @@ class Cifti2Image(DataobjImage, SerializableImage):
1412
1412
rw = True
1413
1413
1414
1414
def __init__ (
1415
- self , dataobj = None , header = None , nifti_header = None , extra = None , file_map = None , dtype = None
1415
+ self ,
1416
+ dataobj = None ,
1417
+ header = None ,
1418
+ nifti_header = None ,
1419
+ extra = None ,
1420
+ file_map = None ,
1421
+ dtype = None ,
1416
1422
):
1417
1423
"""Initialize image
1418
1424
@@ -1485,7 +1491,7 @@ def from_file_map(klass, file_map, *, mmap=True, keep_file_open=None):
1485
1491
cifti_header = item .get_content ()
1486
1492
break
1487
1493
else :
1488
- raise ValueError ('NIfTI2 header does not contain a CIFTI-2 ' ' extension' )
1494
+ raise ValueError ('NIfTI2 header does not contain a CIFTI-2 extension' )
1489
1495
1490
1496
# Construct cifti image.
1491
1497
# Use array proxy object where possible
0 commit comments