@@ -70,7 +70,7 @@ class Cifti2HeaderError(Exception):
7070
7171CIFTI_MODEL_TYPES = (
7272 'CIFTI_MODEL_TYPE_SURFACE' , # Modeled using surface vertices
73- 'CIFTI_MODEL_TYPE_VOXELS' , # Modeled using voxels.
73+ 'CIFTI_MODEL_TYPE_VOXELS' , # Modeled using voxels
7474)
7575
7676CIFTI_SERIESUNIT_TYPES = ('SECOND' , 'HERTZ' , 'METER' , 'RADIAN' )
@@ -662,7 +662,7 @@ def __init__(self, name=None, voxel_indices_ijk=None, vertices=None):
662662 self .vertices = vertices if vertices is not None else []
663663 for val in self .vertices :
664664 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' ))
666666
667667 @property
668668 def voxel_indices_ijk (self ):
@@ -1237,7 +1237,7 @@ def _validate_new_mim(self, value):
12371237 a2md = self ._get_indices_from_mim (value )
12381238 if not set (self .mapped_indices ).isdisjoint (a2md ):
12391239 raise Cifti2HeaderError (
1240- 'Indices in this Cifti2MatrixIndicesMap ' ' already mapped in this matrix'
1240+ 'Indices in this Cifti2MatrixIndicesMap already mapped in this matrix'
12411241 )
12421242
12431243 def __setitem__ (self , key , value ):
@@ -1412,7 +1412,13 @@ class Cifti2Image(DataobjImage, SerializableImage):
14121412 rw = True
14131413
14141414 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 ,
14161422 ):
14171423 """Initialize image
14181424
@@ -1485,7 +1491,7 @@ def from_file_map(klass, file_map, *, mmap=True, keep_file_open=None):
14851491 cifti_header = item .get_content ()
14861492 break
14871493 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' )
14891495
14901496 # Construct cifti image.
14911497 # Use array proxy object where possible
0 commit comments