Skip to content

Commit

Permalink
adapt without preprocessing
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 24, 2024
1 parent 6e191ab commit 3fdd740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clinicadl/caps_dataset/extraction/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class ExtractionSliceConfig(ExtractionConfig):
slice_direction: SliceDirection = SliceDirection.SAGITTAL
slice_mode: SliceMode = SliceMode.RGB
num_slices: Optional[NonNegativeInt] = None
discarded_slices: Union[int, tuple] = (0,)
discarded_slices: Union[int, Tuple] = (0,)
extract_method: ExtractionMethod = ExtractionMethod.SLICE

@field_validator("slice_direction", mode="before")
Expand All @@ -67,7 +67,7 @@ def check_slice_direction(cls, v: str):
return SliceDirection(str(v))

@field_validator("discarded_slices", mode="before")
def compute_discarded_slice(cls, v: Union[int, tuple]) -> Tuple[int, int]:
def compute_discarded_slice(cls, v: Union[int, Tuple]) -> Tuple[int, int]:
return compute_discarded_slices(v)


Expand Down

0 comments on commit 3fdd740

Please sign in to comment.