@@ -538,7 +538,7 @@ def to_cifti_brain_structure_name(name):
538538 proposed_name = f'CIFTI_STRUCTURE_{ structure .upper ()} _{ orientation .upper ()} '
539539 if proposed_name not in cifti2 .CIFTI_BRAIN_STRUCTURES :
540540 raise ValueError (f'{ name } was interpreted as { proposed_name } , which is not '
541- f 'a valid CIFTI brain structure' )
541+ 'a valid CIFTI brain structure' )
542542 return proposed_name
543543
544544 @property
@@ -650,7 +650,7 @@ def __add__(self, other):
650650 nvertices = dict (self .nvertices )
651651 for name , value in other .nvertices .items ():
652652 if name in nvertices .keys () and nvertices [name ] != value :
653- raise ValueError (f "Trying to concatenate two BrainModels with "
653+ raise ValueError ("Trying to concatenate two BrainModels with "
654654 f"inconsistent number of vertices for { name } " )
655655 nvertices [name ] = value
656656 return self .__class__ (
@@ -804,7 +804,7 @@ def from_brain_models(cls, named_brain_models):
804804 for name , _ , bm_part in bm .iter_structures ():
805805 if name in bm .nvertices .keys ():
806806 if name in nvertices .keys () and nvertices [name ] != bm .nvertices [name ]:
807- raise ValueError (f "Got multiple conflicting number of "
807+ raise ValueError ("Got multiple conflicting number of "
808808 f"vertices for surface structure { name } " )
809809 nvertices [name ] = bm .nvertices [name ]
810810 vertices [name ] = bm_part .vertex
@@ -967,7 +967,7 @@ def __add__(self, other):
967967 nvertices = dict (self .nvertices )
968968 for name , value in other .nvertices .items ():
969969 if name in nvertices .keys () and nvertices [name ] != value :
970- raise ValueError (f "Trying to concatenate two ParcelsAxis with "
970+ raise ValueError ("Trying to concatenate two ParcelsAxis with "
971971 f"inconsistent number of vertices for { name } " )
972972 nvertices [name ] = value
973973 return self .__class__ (
0 commit comments