@@ -335,17 +335,23 @@ def init_single_subject_wf(subject_id):
335
335
config .loggers .workflow .error (message )
336
336
raise ValueError (message )
337
337
338
- config .loggers .workflow .debug (
339
- f"{ len (fmap_estimators )} fieldmap estimators found: "
340
- f"{ [e .method for e in fmap_estimators ]} "
341
- )
342
-
343
- if "fieldmaps" in config .workflow .ignore :
338
+ if (
339
+ "fieldmaps" in config .workflow .ignore
340
+ and [f for f in fmap_estimators
341
+ if f .method != fm .EstimatorType .ANAT ]
342
+ ):
343
+ config .loggers .workflow .info (
344
+ 'Option "--ignore fieldmaps" was set, but either "--use-syn-sdc" '
345
+ 'or "--force-syn" were given, so fieldmap-less estimation will be executed.'
346
+ )
344
347
fmap_estimators = [f for f in fmap_estimators
345
348
if f .method == fm .EstimatorType .ANAT ]
346
- config .loggers .workflow .debug (
347
- "Ignoring fieldmap scans, using anatomical estimators: "
348
- f"{ [e .method for e in fmap_estimators ]} "
349
+
350
+ if fmap_estimators :
351
+ config .loggers .workflow .info (
352
+ "B0 field inhomogeneity map will be estimated with "
353
+ f" the following { len (fmap_estimators )} estimators: "
354
+ f"{ [e .method for e in fmap_estimators ]} ."
349
355
)
350
356
351
357
# Append the functional section to the existing anatomical exerpt
@@ -426,6 +432,8 @@ def init_single_subject_wf(subject_id):
426
432
config .loggers .workflow .info (f"""\
427
433
Setting-up fieldmap "{ estimator .bids_id } " ({ estimator .method } ) with \
428
434
<{ ', ' .join (s .path .name for s in estimator .sources )} >""" )
435
+
436
+ # Mapped and phasediff can be connected internally by SDCFlows
429
437
if estimator .method in (fm .EstimatorType .MAPPED , fm .EstimatorType .PHASEDIFF ):
430
438
continue
431
439
0 commit comments