@@ -114,9 +114,7 @@ def extract_cifti_scalar_data(cifti_file, reference_brain_names=None):
114114 )
115115 if reference_brain_names is not None :
116116 if not np .array_equal (brain_names , reference_brain_names ):
117- raise ValueError (
118- f'Inconsistent greyordinate names in CIFTI file { cifti_file !r} .'
119- )
117+ raise ValueError (f'Inconsistent greyordinate names in CIFTI file { cifti_file !r} .' )
120118 return cifti_data , brain_names
121119
122120 elif len (scalar_axes ) == 1 and len (parcel_axes ) == 1 :
@@ -133,9 +131,7 @@ def extract_cifti_scalar_data(cifti_file, reference_brain_names=None):
133131 )
134132 if reference_brain_names is not None :
135133 if not np .array_equal (parcel_names , reference_brain_names ):
136- raise ValueError (
137- f'Inconsistent parcel names in CIFTI file { cifti_file !r} .'
138- )
134+ raise ValueError (f'Inconsistent parcel names in CIFTI file { cifti_file !r} .' )
139135 return cifti_data , parcel_names
140136
141137 elif len (parcel_axes ) == 2 :
@@ -153,9 +149,7 @@ def extract_cifti_scalar_data(cifti_file, reference_brain_names=None):
153149 cifti_data_flat = cifti_data .flatten ()
154150 if reference_brain_names is not None :
155151 if not np .array_equal (element_names , reference_brain_names ):
156- raise ValueError (
157- f'Inconsistent parcel names in CIFTI file { cifti_file !r} .'
158- )
152+ raise ValueError (f'Inconsistent parcel names in CIFTI file { cifti_file !r} .' )
159153 return cifti_data_flat , element_names
160154
161155 else :
0 commit comments