From f091c80e4dac689c09303a3fa0bbcef27b43cf68 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Tue, 6 Dec 2022 14:47:18 -0500 Subject: [PATCH] DOC: Update expected estimators --- sdcflows/utils/wrangler.py | 34 +++++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/sdcflows/utils/wrangler.py b/sdcflows/utils/wrangler.py index 10c8ace849..fc18efe6f4 100644 --- a/sdcflows/utils/wrangler.py +++ b/sdcflows/utils/wrangler.py @@ -178,9 +178,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: @@ -190,13 +192,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 @@ -235,9 +247,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: @@ -262,7 +274,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