Skip to content

Commit 8e85701

Browse files
bpinsardeffigies
andcommitted
Update niworkflows/workflows/tests/test_gradunwarp.py
Co-authored-by: Chris Markiewicz <[email protected]>
1 parent baf8e45 commit 8e85701

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

niworkflows/workflows/tests/test_gradunwarp.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,7 @@ def test_gradunwarp(tmpdir, ds000030_dir, workdir, outdir):
3737
wf.base_dir = str(workdir)
3838

3939
print(ds000030_dir)
40-
wf.inputs.inputnode.input_file = [
41-
str(f) for f in (ds000030_dir / "sub-10228" / "anat").glob("*_T1w.nii.gz")
42-
][0]
40+
wf.inputs.inputnode.input_file = str(next(ds000030_dir.glob("sub-10228/anat/*_T1w.nii.gz")))
4341
wf.inputs.inputnode.grad_file = load_test_data('gradunwarp_coeffs.grad')
4442

4543
wf.run()

0 commit comments

Comments
 (0)