Skip to content

Commit 7c6cc93

Browse files
committed
Test both types of annotation.
1 parent 54d92c4 commit 7c6cc93

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/build-test-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ jobs:
187187
# ds005250
188188
datalad install -r https://github.com/nipreps-data/ds005250.git
189189
datalad update -r --merge -d ds005250/
190-
datalad get -r -J 2 -d ds005250/ ds005250/sub-04/ses-2/
190+
datalad get -r -J 2 -d ds005250/ ds005250/
191191
192192
- name: Set FreeSurfer variables
193193
run: |

sdcflows/utils/wrangler.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,14 +321,30 @@ def find_estimators(
321321
FieldmapEstimation(sources=<2 files>, method=<EstimatorType.ANAT: 5>,
322322
bids_id='auto_...')]
323323
324-
MEDIC fieldmaps are also supported:
324+
MEDIC fieldmaps are also supported, both with B0FieldIdentifier metadata:
325325
326326
>>> find_estimators(
327327
... layout=layouts['ds005250'],
328328
... subject='04',
329+
... sessions=['1'],
330+
... fmapless=False,
331+
... force_fmapless=False,
332+
... ) # doctest: +ELLIPSIS
333+
[FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
334+
bids_id='sub_04_ses_1_DCAN_fmap_acq_MESE'),
335+
FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
336+
bids_id='sub_04_ses_1_DCAN_fmap_acq_MEGE'),
337+
FieldmapEstimation(sources=<10 files>, method=<EstimatorType.MEDIC: 6>,
338+
bids_id='sub_04_ses_1_acq_MBME_medic')]
339+
340+
and with IntendedFor metadata:
341+
342+
>>> find_estimators(
343+
... layout=layouts['ds005250'],
344+
... subject='04',
345+
... sessions=['2'],
329346
... fmapless=False,
330347
... force_fmapless=False,
331-
... bids_filters={'session': '2'},
332348
... ) # doctest: +ELLIPSIS
333349
[FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
334350
bids_id='auto_...'),

0 commit comments

Comments
 (0)