Skip to content

Commit 9dce206

Browse files
committed
Pass derivatives dir as input to sequential stages
The functional/metrics/qc stages need to discover derivatives from previous stages via load_table, so the output dir must be included in the input dirs alongside the raw BIDS dataset.
1 parent c1dd6c3 commit 9dce206

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

tests/integration/test_all.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,20 @@ def sequential_output(tmp_path_factory: pytest.TempPathFactory, _runner: str) ->
9898
out.mkdir()
9999

100100
runner_args = ["--runner", _runner, *_COMMON_ARGS]
101-
input_args = [str(_TEST_DATASET), "-o", str(out)]
101+
raw = str(_TEST_DATASET)
102+
deriv = str(out)
102103

103-
# 1. anatomical
104-
_run_rbc(["anatomical", *input_args, *runner_args])
104+
# 1. anatomical (raw BIDS only)
105+
_run_rbc(["anatomical", raw, "-o", deriv, *runner_args])
105106

106-
# 2. functional (reads anat derivatives from output_dir)
107-
_run_rbc(["functional", *input_args, *runner_args])
107+
# 2. functional (raw BIDS + anat derivatives)
108+
_run_rbc(["functional", raw, deriv, "-o", deriv, *runner_args])
108109

109-
# 3. metrics (reads func derivatives from output_dir)
110-
_run_rbc(["metrics", *input_args, *runner_args])
110+
# 3. metrics (raw BIDS + derivatives from previous stages)
111+
_run_rbc(["metrics", raw, deriv, "-o", deriv, *runner_args])
111112

112-
# 4. qc (reads func derivatives from output_dir)
113-
_run_rbc(["qc", *input_args, *runner_args])
113+
# 4. qc (raw BIDS + derivatives from previous stages)
114+
_run_rbc(["qc", raw, deriv, "-o", deriv, *runner_args])
114115

115116
return out
116117

0 commit comments

Comments
 (0)