Skip to content

Commit

Permalink
Test both types of annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
tsalo committed Dec 12, 2024
1 parent 54d92c4 commit 7c6cc93
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ jobs:
# ds005250
datalad install -r https://github.com/nipreps-data/ds005250.git
datalad update -r --merge -d ds005250/
datalad get -r -J 2 -d ds005250/ ds005250/sub-04/ses-2/
datalad get -r -J 2 -d ds005250/ ds005250/
- name: Set FreeSurfer variables
run: |
Expand Down
20 changes: 18 additions & 2 deletions sdcflows/utils/wrangler.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,14 +321,30 @@ def find_estimators(
FieldmapEstimation(sources=<2 files>, method=<EstimatorType.ANAT: 5>,
bids_id='auto_...')]
MEDIC fieldmaps are also supported:
MEDIC fieldmaps are also supported, both with B0FieldIdentifier metadata:
>>> find_estimators(
... layout=layouts['ds005250'],
... subject='04',
... sessions=['1'],
... fmapless=False,
... force_fmapless=False,
... ) # doctest: +ELLIPSIS
[FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
bids_id='sub_04_ses_1_DCAN_fmap_acq_MESE'),
FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
bids_id='sub_04_ses_1_DCAN_fmap_acq_MEGE'),
FieldmapEstimation(sources=<10 files>, method=<EstimatorType.MEDIC: 6>,
bids_id='sub_04_ses_1_acq_MBME_medic')]
and with IntendedFor metadata:
>>> find_estimators(
... layout=layouts['ds005250'],
... subject='04',
... sessions=['2'],
... fmapless=False,
... force_fmapless=False,
... bids_filters={'session': '2'},
... ) # doctest: +ELLIPSIS
[FieldmapEstimation(sources=<2 files>, method=<EstimatorType.PEPOLAR: 2>,
bids_id='auto_...'),
Expand Down

0 comments on commit 7c6cc93

Please sign in to comment.