[FIX]: Correct command for mri_binarize in BrainPrint #356

Merged
synchon merged 2 commits from fix/brainprint-mri-binarize into main 2024-08-01 09:33:30 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -0,0 +1 @@
Fix ``mri_binarize`` command preparation for structures with multiple indices in :class:`.BrainPrint` by `Fede Raimondo`_

View file

@ -143,7 +143,7 @@ class BrainPrint(BaseMarker):
mri_binarize_cmd = [ mri_binarize_cmd = [
"mri_binarize", "mri_binarize",
f"--i {aseg_path.resolve()}", f"--i {aseg_path.resolve()}",
f"--match {''.join(indices)}", f"--match {' '.join(indices)}",
f"--o {mri_binarize_output_path.resolve()}", f"--o {mri_binarize_output_path.resolve()}",
] ]
# Call mri_binarize command # Call mri_binarize command