Skip to content

Commit

Permalink
fix instantiation tests
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen committed Nov 12, 2024
1 parent cfe3bfa commit 432ce9b
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions test/instantiation/test_instantiate_all_pipelines.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def run_create_dartel(base_dir: Path, output_dir: Path, working_dir: Path) -> No
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
parameters={"group_label": "UnitTest"},
group_label="UnitTest",
).build()


Expand All @@ -96,7 +96,7 @@ def run_dartel_to_mni(base_dir: Path, output_dir: Path, working_dir: Path) -> No
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
parameters={"group_label": "UnitTest"},
group_label="UnitTest",
).build()


Expand All @@ -115,7 +115,7 @@ def run_register_dartel(base_dir: Path, output_dir: Path, working_dir: Path) ->
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
parameters={"group_label": "UnitTest"},
group_label="UnitTest",
).build()


Expand All @@ -135,7 +135,7 @@ def test_instantiate_t1_volume_parcellation(cmdopt, tmp_path):
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
parameters={"group_label": "UnitTest"},
group_label="UnitTest",
).build()


Expand Down Expand Up @@ -229,8 +229,8 @@ def run_pet_volume(base_dir: Path, output_dir: Path, working_dir: Path) -> None:
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
group_label="UnitTest",
parameters={
"group_label": "UnitTest",
"acq_label": Tracer.FDG,
"suvr_reference_region": SUVRReferenceRegion.PONS,
"skip_question": True,
Expand Down Expand Up @@ -275,8 +275,8 @@ def test_instantiate_statistics_surface(cmdopt, tmp_path):
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
group_label="UnitTest",
parameters={
"group_label": "UnitTest",
"orig_input_data": "t1-freesurfer",
"glm_type": "group_comparison",
"contrast": "group",
Expand Down Expand Up @@ -425,10 +425,8 @@ def test_instantiate_spatial_svm(cmdopt, tmp_path):
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "subjects.tsv"),
base_dir=fspath(working_dir),
parameters={
"group_label": "ADNIbl",
"orig_input_data_ml": "t1-volume",
},
group_label="ADNIbl",
parameters={"orig_input_data_ml": "t1-volume"},
).build()


Expand Down Expand Up @@ -503,8 +501,8 @@ def test_instantiate_statistics_volume(cmdopt, tmp_path):
caps_directory=fspath(tmp_dir / "caps"),
tsv_file=fspath(input_dir / "group-UnitTest_covariates.tsv"),
base_dir=fspath(working_dir),
group_label="UnitTest",
parameters={
"group_label": "UnitTest",
"orig_input_data_volume": "pet-volume",
"contrast": "group",
"acq_label": Tracer.FDG,
Expand Down

0 comments on commit 432ce9b

Please sign in to comment.