From b3ab6503f33e7293073c43c2861e604577736ffa Mon Sep 17 00:00:00 2001 From: Benedikt Mersch Date: Fri, 23 Feb 2024 11:41:10 +0100 Subject: [PATCH] Use .model_dump() because .dict() is outdated --- python/kiss_icp/config/parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/kiss_icp/config/parser.py b/python/kiss_icp/config/parser.py index 7be3a17a..5f2b58ec 100644 --- a/python/kiss_icp/config/parser.py +++ b/python/kiss_icp/config/parser.py @@ -87,6 +87,6 @@ def write_config(config: KISSConfig, filename: str): with open(filename, "w") as outfile: try: yaml = importlib.import_module("yaml") - yaml.dump(config.dict(), outfile, default_flow_style=False) + yaml.dump(config.model_dump(), outfile, default_flow_style=False) except ModuleNotFoundError: - outfile.write(str(config.dict())) + outfile.write(str(config.model_dump()))