@@ -538,7 +538,7 @@ def to_cifti_brain_structure_name(name):
538
538
proposed_name = f'CIFTI_STRUCTURE_{ structure .upper ()} _{ orientation .upper ()} '
539
539
if proposed_name not in cifti2 .CIFTI_BRAIN_STRUCTURES :
540
540
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' )
542
542
return proposed_name
543
543
544
544
@property
@@ -650,7 +650,7 @@ def __add__(self, other):
650
650
nvertices = dict (self .nvertices )
651
651
for name , value in other .nvertices .items ():
652
652
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 "
654
654
f"inconsistent number of vertices for { name } " )
655
655
nvertices [name ] = value
656
656
return self .__class__ (
@@ -804,7 +804,7 @@ def from_brain_models(cls, named_brain_models):
804
804
for name , _ , bm_part in bm .iter_structures ():
805
805
if name in bm .nvertices .keys ():
806
806
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 "
808
808
f"vertices for surface structure { name } " )
809
809
nvertices [name ] = bm .nvertices [name ]
810
810
vertices [name ] = bm_part .vertex
@@ -967,7 +967,7 @@ def __add__(self, other):
967
967
nvertices = dict (self .nvertices )
968
968
for name , value in other .nvertices .items ():
969
969
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 "
971
971
f"inconsistent number of vertices for { name } " )
972
972
nvertices [name ] = value
973
973
return self .__class__ (
0 commit comments