From 57f92335d2f0321bbda16d9db3b4e974a12ef95a Mon Sep 17 00:00:00 2001 From: vmalefioudakis Date: Wed, 20 Nov 2024 15:18:15 +0200 Subject: [PATCH] made some code changes --- GANDLF/config_manager.py | 2 +- GANDLF/utils/pydantic_config.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/GANDLF/config_manager.py b/GANDLF/config_manager.py index 0cf3d3528..a835ad9de 100644 --- a/GANDLF/config_manager.py +++ b/GANDLF/config_manager.py @@ -750,7 +750,7 @@ def ConfigManager( try: parameters = Parameters( **_parseConfig(config_file_path, version_check_flag) - ).dict() + ).model_dump(by_alias=True) return parameters except Exception as e: ## todo: ensure logging captures assertion errors diff --git a/GANDLF/utils/pydantic_config.py b/GANDLF/utils/pydantic_config.py index f8ef4bf9f..2e4cf75f3 100644 --- a/GANDLF/utils/pydantic_config.py +++ b/GANDLF/utils/pydantic_config.py @@ -75,3 +75,4 @@ class Parameters(BaseModel): output_dir: Optional[str] = "" problem_type: Optional[str] = None differential_privacy: Optional[dict] = {} +