From d98f34612f9fdeb13826b31e0421dd7b4b7f505f Mon Sep 17 00:00:00 2001 From: camillebrianceau Date: Thu, 24 Oct 2024 10:57:11 +0200 Subject: [PATCH] adapt slice and preprocessing --- clinicadl/caps_dataset/extraction/config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clinicadl/caps_dataset/extraction/config.py b/clinicadl/caps_dataset/extraction/config.py index 5b084509c..c9d32e135 100644 --- a/clinicadl/caps_dataset/extraction/config.py +++ b/clinicadl/caps_dataset/extraction/config.py @@ -62,9 +62,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[NonNegativeInt, NonNegativeInt]: + def compute_discarded_slice(cls, v: Union[int, tuple]) -> tuple[int, int]: return compute_discarded_slices(v)