diff --git a/sdcflows/utils/wrangler.py b/sdcflows/utils/wrangler.py index 1577d71819..9782fc5de7 100644 --- a/sdcflows/utils/wrangler.py +++ b/sdcflows/utils/wrangler.py @@ -176,9 +176,11 @@ def find_estimators( ... force_fmapless=True, ... ) # doctest: +ELLIPSIS [FieldmapEstimation(sources=<3 files>, method=, - bids_id='auto_00000'), - FieldmapEstimation(sources=<3 files>, method=, - bids_id='auto_00001')] + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...')] Likewise in a more comprehensive dataset: @@ -188,13 +190,23 @@ def find_estimators( ... force_fmapless=True, ... ) # doctest: +ELLIPSIS [FieldmapEstimation(sources=<4 files>, method=, - bids_id='auto_00002'), - FieldmapEstimation(sources=<7 files>, method=, - bids_id='auto_00003'), + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), FieldmapEstimation(sources=<2 files>, method=, - bids_id='auto_00004'), + bids_id='auto_...'), FieldmapEstimation(sources=<2 files>, method=, - bids_id='auto_00005')] + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...'), + FieldmapEstimation(sources=<2 files>, method=, + bids_id='auto_...')] Because "*dataset A*" contains very few metadata fields available, "*fieldmap-less*" heuristics come back empty (BOLD and DWI files are missing @@ -233,9 +245,9 @@ def find_estimators( ... force_fmapless=False, ... ) # doctest: +ELLIPSIS [FieldmapEstimation(sources=<2 files>, method=, - bids_id='auto_00011'), + bids_id='auto_...'), FieldmapEstimation(sources=<2 files>, method=, - bids_id='auto_00012')] + bids_id='auto_...')] When the ``B0FieldIdentifier`` metadata is set for one or more fieldmaps, then the heuristics that use ``IntendedFor`` are dismissed: @@ -260,7 +272,7 @@ def find_estimators( [FieldmapEstimation(sources=<5 files>, method=, bids_id='pepolar4pe'), FieldmapEstimation(sources=<2 files>, method=, - bids_id='auto_00000')] + bids_id='auto_...')] """ from .misc import create_logger