Skip to content

Commit

Permalink
Use .model_dump() because .dict() is outdated
Browse files Browse the repository at this point in the history
  • Loading branch information
benemer committed Feb 23, 2024
1 parent 460c6f2 commit b3ab650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/kiss_icp/config/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))

0 comments on commit b3ab650

Please sign in to comment.