Skip to content

Commit

Permalink
fix(framework:skip) Update config utils to flatten overrides (#4319)
Browse files Browse the repository at this point in the history
Co-authored-by: Charles Beauville <charles@flower.ai>
  • Loading branch information
xiliguguagua and charlesbvll authored Oct 10, 2024
1 parent b857425 commit d1a0ebb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/py/flwr/common/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,9 @@ def parse_config_args(
matches = pattern.findall(config_line)
toml_str = "\n".join(f"{k} = {v}" for k, v in matches)
overrides.update(tomli.loads(toml_str))
flat_overrides = flatten_dict(overrides)

return overrides
return flat_overrides


def get_metadata_from_config(config: dict[str, Any]) -> tuple[str, str]:
Expand Down

0 comments on commit d1a0ebb

Please sign in to comment.