Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGensollen committed Nov 7, 2024
1 parent d6625d0 commit 8402757
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions clinica/utils/input_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]

Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 8402757

Please sign in to comment.