File tree Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Expand file tree Collapse file tree 2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -775,9 +775,7 @@ def get(flat=False):
775
775
return settings
776
776
777
777
return {
778
- '.' .join ((section , k )): v
779
- for section , configs in settings .items ()
780
- for k , v in configs .items ()
778
+ f'{ section } .{ k } ' : v for section , configs in settings .items () for k , v in configs .items ()
781
779
}
782
780
783
781
Original file line number Diff line number Diff line change @@ -254,20 +254,15 @@ def _generate_segment(self):
254
254
255
255
pedir = get_world_pedir (self .inputs .orientation , self .inputs .pe_direction )
256
256
257
- dummy_scan_tmp = '{n_dum}'
258
257
if self .inputs .dummy_scans == self .inputs .algo_dummy_scans :
259
- dummy_scan_msg = ' ' .join (
260
- [dummy_scan_tmp , '(Confirmed: {n_alg} automatically detected)' ]
261
- ).format (n_dum = self .inputs .dummy_scans , n_alg = self .inputs .algo_dummy_scans )
258
+ dummy_scan_msg = f'{ self .inputs .dummy_scans } (Confirmed: { self .inputs .algo_dummy_scans } automatically detected)'
262
259
# the number of dummy scans was specified by the user and
263
260
# it is not equal to the number detected by the algorithm
264
261
elif self .inputs .dummy_scans is not None :
265
- dummy_scan_msg = ' ' .join (
266
- [dummy_scan_tmp , '(Warning: {n_alg} automatically detected)' ]
267
- ).format (n_dum = self .inputs .dummy_scans , n_alg = self .inputs .algo_dummy_scans )
262
+ dummy_scan_msg = f'{ self .inputs .dummy_scans } (Warning: { self .inputs .algo_dummy_scans } automatically detected)'
268
263
# the number of dummy scans was not specified by the user
269
264
else :
270
- dummy_scan_msg = dummy_scan_tmp . format ( n_dum = self .inputs .algo_dummy_scans )
265
+ dummy_scan_msg = f' { self .inputs .algo_dummy_scans } '
271
266
272
267
multiecho = 'Single-echo EPI sequence.'
273
268
n_echos = len (self .inputs .echo_idx )
You can’t perform that action at this time.
0 commit comments