Skip to content

Commit

Permalink
change preprocessing config
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 23, 2024
1 parent 580f249 commit 311cbed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clinicadl/caps_dataset/preprocessing/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from clinicadl.utils.enum import (
DTIMeasure,
DTISpace,
ImageModality,
LinearModality,
Preprocessing,
SUVRReferenceRegions,
Expand Down Expand Up @@ -100,6 +101,9 @@ def bids_nii(self, reconstruction: Optional[str] = None) -> FileType:
)
return file_type

def caps_nii(self) -> tuple:
return (self.preprocessing, ImageModality.PET)

def get_filetype(self) -> FileType:
if self.use_uncropped_image:
description = ""
Expand All @@ -124,6 +128,9 @@ def bids_nii(self, reconstruction: Optional[str] = None) -> FileType:
description="Custom suffix",
)

def caps_nii(self) -> tuple:
return (self.preprocessing, ImageModality.CUSTOM)

def get_filetype(self) -> FileType:
return self.bids_nii()

Expand All @@ -136,6 +143,9 @@ class DTIPreprocessingConfig(PreprocessingConfig):
def bids_nii(self, reconstruction: Optional[str] = None) -> FileType:
return FileType(pattern="dwi/sub-*_ses-*_dwi.nii*", description="DWI NIfTI")

def caps_nii(self) -> tuple:
return (self.preprocessing, ImageModality.DWI)

def get_filetype(self) -> FileType:
"""Return the query dict required to capture DWI DTI images.
Expand Down

0 comments on commit 311cbed

Please sign in to comment.