Skip to content

Commit

Permalink
handle merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
psadil committed Oct 2, 2024
1 parent 0c2e1b5 commit c568a7b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions fmriprep/utils/tests/test_derivative_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,28 @@
from fmriprep.utils import bids


@pytest.mark.parametrize('desc', ['hmc', 'coreg'])
def test_baseline_found_as_str(tmp_path: Path, desc: str):
subject = '0'
task = 'rest'

to_find = tmp_path.joinpath(
f'sub-{subject}', 'func', f'sub-{subject}_task-{task}_desc-{desc}_boldref.nii.gz'
)
to_find.parent.mkdir(parents=True)
to_find.touch()

entities = {
'subject': subject,
'task': task,
'suffix': 'bold',
'extension': '.nii.gz',
}

derivs = bids.collect_derivatives(derivatives_dir=tmp_path, entities=entities)
assert dict(derivs) == {f'{desc}_boldref': str(to_find), 'transforms': {}}


@pytest.mark.parametrize('xfm', ['boldref2fmap', 'boldref2anat', 'hmc'])
def test_transforms_found_as_str(tmp_path: Path, xfm: str):
subject = '0'
Expand Down

0 comments on commit c568a7b

Please sign in to comment.