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 @@ -780,9 +780,7 @@ def get(flat=False):
780
780
return settings
781
781
782
782
return {
783
- '.' .join ((section , k )): v
784
- for section , configs in settings .items ()
785
- for k , v in configs .items ()
783
+ f'{ section } .{ k } ' : v for section , configs in settings .items () for k , v in configs .items ()
786
784
}
787
785
788
786
Original file line number Diff line number Diff line change @@ -261,20 +261,15 @@ def _generate_segment(self):
261
261
262
262
pedir = get_world_pedir (self .inputs .orientation , self .inputs .pe_direction )
263
263
264
- dummy_scan_tmp = '{n_dum}'
265
264
if self .inputs .dummy_scans == self .inputs .algo_dummy_scans :
266
- dummy_scan_msg = ' ' .join (
267
- [dummy_scan_tmp , '(Confirmed: {n_alg} automatically detected)' ]
268
- ).format (n_dum = self .inputs .dummy_scans , n_alg = self .inputs .algo_dummy_scans )
265
+ dummy_scan_msg = f'{ self .inputs .dummy_scans } (Confirmed: { self .inputs .algo_dummy_scans } automatically detected)'
269
266
# the number of dummy scans was specified by the user and
270
267
# it is not equal to the number detected by the algorithm
271
268
elif self .inputs .dummy_scans is not None :
272
- dummy_scan_msg = ' ' .join (
273
- [dummy_scan_tmp , '(Warning: {n_alg} automatically detected)' ]
274
- ).format (n_dum = self .inputs .dummy_scans , n_alg = self .inputs .algo_dummy_scans )
269
+ dummy_scan_msg = f'{ self .inputs .dummy_scans } (Warning: { self .inputs .algo_dummy_scans } automatically detected)'
275
270
# the number of dummy scans was not specified by the user
276
271
else :
277
- dummy_scan_msg = dummy_scan_tmp . format ( n_dum = self .inputs .algo_dummy_scans )
272
+ dummy_scan_msg = f' { self .inputs .algo_dummy_scans } '
278
273
279
274
multiecho = 'Single-echo EPI sequence.'
280
275
n_echos = len (self .inputs .echo_idx )
You can’t perform that action at this time.
0 commit comments