From 8402757c31c54acfc8200d84cab1f5b906f77dbd Mon Sep 17 00:00:00 2001 From: NicolasGensollen Date: Thu, 7 Nov 2024 13:37:06 +0100 Subject: [PATCH] fix --- .../t1_volume_dartel2mni_pipeline.py | 4 +++- clinica/utils/input_files.py | 10 +++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py b/clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py index cff447e95..f88ac4ce5 100644 --- a/clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py +++ b/clinica/pipelines/t1_volume_dartel2mni/t1_volume_dartel2mni_pipeline.py @@ -83,7 +83,9 @@ def _build_input_node(self): # Segmented Tissues # ================= patterns = [ - query_pattern_factory(QueryPatternName.T1_VOLUME_NATIVE_TPM)(tissue_number) + query_pattern_factory(QueryPatternName.T1_VOLUME_TPM)( + tissue_number, modulation=False, mni_space=False + ) for tissue_number in self.parameters["tissues"] ] try: diff --git a/clinica/utils/input_files.py b/clinica/utils/input_files.py index 1afed92dc..2cec23de4 100644 --- a/clinica/utils/input_files.py +++ b/clinica/utils/input_files.py @@ -33,7 +33,7 @@ "get_t1_freesurfer_parcellation", "get_t1_freesurfer_template", "get_t1_freesurfer_longitudinal_parcellation", - "get_t1_volume_native_tpm", + "get_t1_volume_tpm", "get_t1_volume_dartel_input_tissue", ] @@ -104,7 +104,7 @@ class QueryPatternName(Enum): T1_FREESURFER_LONG_PARCELLATION = auto() T1_FREESURFER_SEGMENTATION = auto() T1_FREESURFER_TEMPLATE = auto() - T1_VOLUME_NATIVE_TPM = auto() + T1_VOLUME_TPM = auto() T1_VOLUME_DARTEL_INPUT_TISSUE = auto() T1_VOLUME_DEFORMATION_TO_TEMPLATE = auto() T1_VOLUME_GROUP_TEMPLATE = auto() @@ -170,8 +170,8 @@ def query_pattern_factory( return get_t1_freesurfer_white_matter_surface if name == QueryPatternName.T1_FREESURFER_LONG_SURFACE: return get_t1_freesurfer_longitudinal_white_matter_surface - if name == QueryPatternName.T1_VOLUME_NATIVE_TPM: - return get_t1_volume_native_tpm + if name == QueryPatternName.T1_VOLUME_TPM: + return get_t1_volume_tpm if name == QueryPatternName.T1_VOLUME_DARTEL_INPUT_TISSUE: return get_t1_volume_dartel_input_tissue if name == QueryPatternName.T1_VOLUME_DEFORMATION_TO_TEMPLATE: @@ -589,7 +589,7 @@ def wrapper_aggregator(*args, **kwargs): @aggregator -def get_t1_volume_native_tpm( +def get_t1_volume_tpm( tissue_number: int, modulation: bool, mni_space: bool ) -> QueryPattern: tissue = get_spm_tissue_from_index(tissue_number)