From 39c28004fc1fb7d80c7437b97a833c8357d2b0bd Mon Sep 17 00:00:00 2001 From: Taylor Salo Date: Tue, 9 Jul 2024 11:00:29 -0400 Subject: [PATCH] Try using more reduced data. --- qsiprep/tests/data/forrest_gump_filter.json | 8 ++++++++ qsiprep/tests/data/maternal_brain_project_filter.json | 5 +++++ qsiprep/tests/test_cli.py | 8 ++++++++ 3 files changed, 21 insertions(+) create mode 100644 qsiprep/tests/data/forrest_gump_filter.json create mode 100644 qsiprep/tests/data/maternal_brain_project_filter.json diff --git a/qsiprep/tests/data/forrest_gump_filter.json b/qsiprep/tests/data/forrest_gump_filter.json new file mode 100644 index 00000000..42b7af2c --- /dev/null +++ b/qsiprep/tests/data/forrest_gump_filter.json @@ -0,0 +1,8 @@ +{ + "t1w": { + "reconstruction": "autobox" + }, + "t2w": { + "reconstruction": "autobox" + } +} diff --git a/qsiprep/tests/data/maternal_brain_project_filter.json b/qsiprep/tests/data/maternal_brain_project_filter.json new file mode 100644 index 00000000..bb7f364e --- /dev/null +++ b/qsiprep/tests/data/maternal_brain_project_filter.json @@ -0,0 +1,5 @@ +{ + "t1w": { + "reconstruction": "autobox" + } +} diff --git a/qsiprep/tests/test_cli.py b/qsiprep/tests/test_cli.py index 1e232890..1819cf4a 100644 --- a/qsiprep/tests/test_cli.py +++ b/qsiprep/tests/test_cli.py @@ -982,6 +982,9 @@ def test_maternal_brain_project(data_dir, output_dir, working_dir): out_dir = os.path.join(output_dir, TEST_NAME) work_dir = os.path.join(working_dir, TEST_NAME) + test_data_path = get_test_data_path() + bids_filter = os.path.join(test_data_path, f"{TEST_NAME}_filter.json") + parameters = [ dataset_dir, out_dir, @@ -991,6 +994,7 @@ def test_maternal_brain_project(data_dir, output_dir, working_dir): "--write-graph", "--output-resolution=5", "--hmc-model=3dSHORE", + f"--bids-filter-file={bids_filter}", ] _run_and_generate(TEST_NAME, parameters, test_main=True) @@ -1013,6 +1017,9 @@ def test_forrest_gump(data_dir, output_dir, working_dir): out_dir = os.path.join(output_dir, TEST_NAME) work_dir = os.path.join(working_dir, TEST_NAME) + test_data_path = get_test_data_path() + bids_filter = os.path.join(test_data_path, f"{TEST_NAME}_filter.json") + parameters = [ dataset_dir, out_dir, @@ -1021,6 +1028,7 @@ def test_forrest_gump(data_dir, output_dir, working_dir): "--sloppy", "--write-graph", "--output-resolution=5", + f"--bids-filter-file={bids_filter}", ] _run_and_generate(TEST_NAME, parameters, test_main=True)