From 0738029de991f7b94db8c49f4f4498510751021a Mon Sep 17 00:00:00 2001 From: camillebrianceau Date: Tue, 1 Oct 2024 16:21:17 +0200 Subject: [PATCH] first try to take out the validator --- clinicadl/validator/config.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/clinicadl/validator/config.py b/clinicadl/validator/config.py index 2e6cfe92a..4ae79f036 100644 --- a/clinicadl/validator/config.py +++ b/clinicadl/validator/config.py @@ -40,6 +40,7 @@ class ValidatorConfig(BaseModel): validate_assignment=True, use_enum_values=True, validate_default=True, + arbitrary_types_allowed=True, ) @computed_field @@ -48,9 +49,9 @@ class ValidatorConfig(BaseModel): def metric(self) -> str: """The name of the metric.""" - @field_validator("get_not_nans", mode="after") - @classmethod - def validator_get_not_nans(cls, v): - assert not v, "get_not_nans not supported in ClinicaDL. Please set to False." + # @field_validator("get_not_nans", mode="after") + # @classmethod + # def validator_get_not_nans(cls, v): + # assert not v, "get_not_nans not supported in ClinicaDL. Please set to False." - return v + # return v