Skip to content

Commit 014da25

Browse files
authored
Merge pull request #358 from eilidhmacnicol/enh/fprodents
ENH: Allow non-T1w anatomical estimators
2 parents ea18e1e + 0b3a768 commit 014da25

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sdcflows/utils/wrangler.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def find_estimators(
4242
force_fmapless: bool = False,
4343
logger: Optional[logging.Logger] = None,
4444
bids_filters: Optional[dict] = None,
45+
anat_suffix: Union[str, List[str]] = 'T1w',
4546
) -> list:
4647
"""
4748
Apply basic heuristics to automatically find available data for fieldmap estimation.
@@ -73,6 +74,9 @@ def find_estimators(
7374
bids_filters
7475
Optional dictionary of key/values to filter the entities on.
7576
This allows lower level file inclusion/exclusion.
77+
anat_suffix : :obj:`str` or :obj:`list`
78+
String or list of strings to filter anatomical images for fieldmap-less
79+
approaches. If not provided, ``T1w`` is used.
7680
7781
Returns
7882
-------
@@ -467,7 +471,7 @@ def find_estimators(
467471
fmapless = False
468472

469473
# Find fieldmap-less schemes
470-
anat_file = layout.get(**{**base_entities, **{'suffix': 'T1w', 'session': sessions}})
474+
anat_file = layout.get(**{**base_entities, **{'suffix': anat_suffix, 'session': sessions}})
471475

472476
if not fmapless or not anat_file:
473477
logger.debug("Skipping fmap-less estimation")

0 commit comments

Comments
 (0)