Skip to content

Commit 3778dad

Browse files
committed
ci: write out estimated fieldmaps
1 parent ea0cf68 commit 3778dad

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

sdcflows/workflows/tests/test_phdiff.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,12 +45,18 @@ def test_phdiff(bids_layouts, tmpdir, output_path, dataset, workdir):
4545
dsink.interface.out_path_base = 'sdcflows'
4646
dsink.inputs.source_file = phdiff_files[0].path
4747

48+
dsink_fmap = pe.Node(DerivativesDataSink(
49+
base_directory=str(output_path), keep_dtype=True), name='dsink_fmap')
50+
dsink_fmap.interface.out_path_base = 'sdcflows'
51+
dsink_fmap.inputs.source_file = phdiff_files[0].path
52+
4853
wf.connect([
4954
(phdiff_wf, rep, [
5055
('outputnode.fmap', 'fieldmap'),
5156
('outputnode.fmap_ref', 'reference'),
5257
('outputnode.fmap_mask', 'mask')]),
5358
(rep, dsink, [('out_report', 'in_file')]),
59+
(phdiff_wf, dsink_fmap, [('outputnode.fmap', 'in_file')]),
5460
])
5561
else:
5662
wf.add_nodes([phdiff_wf])
@@ -90,12 +96,18 @@ def test_phases(bids_layouts, tmpdir, output_path, workdir):
9096
dsink.interface.out_path_base = 'sdcflows'
9197
dsink.inputs.source_file = phdiff_files[0].path
9298

99+
dsink_fmap = pe.Node(DerivativesDataSink(
100+
base_directory=str(output_path), keep_dtype=True), name='dsink_fmap')
101+
dsink_fmap.interface.out_path_base = 'sdcflows'
102+
dsink_fmap.inputs.source_file = phdiff_files[0].path
103+
93104
wf.connect([
94105
(phdiff_wf, rep, [
95106
('outputnode.fmap', 'fieldmap'),
96107
('outputnode.fmap_ref', 'reference'),
97108
('outputnode.fmap_mask', 'mask')]),
98109
(rep, dsink, [('out_report', 'in_file')]),
110+
(phdiff_wf, dsink_fmap, [('outputnode.fmap', 'in_file')]),
99111
])
100112
else:
101113
wf.add_nodes([phdiff_wf])

0 commit comments

Comments
 (0)