Skip to content

Commit

Permalink
first try to take out the validator
Browse files Browse the repository at this point in the history
  • Loading branch information
camillebrianceau committed Oct 1, 2024
1 parent 954dce7 commit 0738029
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions clinicadl/validator/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ class ValidatorConfig(BaseModel):
validate_assignment=True,
use_enum_values=True,
validate_default=True,
arbitrary_types_allowed=True,
)

@computed_field
Expand All @@ -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

0 comments on commit 0738029

Please sign in to comment.