Skip to content

Commit

Permalink
add merge_configs()
Browse files Browse the repository at this point in the history
  • Loading branch information
b8raoult committed Dec 6, 2024
1 parent 92f20bf commit 615f4a3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/anemoi/utils/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,3 +376,11 @@ def find(metadata, what, result=None, *, select: callable = None):
find(v, what, result)

return result


def merge_configs(*configs):
result = {}
for config in configs:
_merge_dicts(result, config)

return result

0 comments on commit 615f4a3

Please sign in to comment.