Data structures
smac.utils.data_structures
#
batch
#
Batches an iterable into chunks of size n.
recursively_compare_dicts
#
recursively_compare_dicts(
d1: dict,
d2: dict,
*,
level: str = "root",
diff: list[str] | None = None
) -> list[str]
Compares dictionaries recursively. Returns a list of differences in string format.
| PARAMETER | DESCRIPTION |
|---|---|
d1
|
First dictionary.
TYPE:
|
d2
|
Second dictionary.
TYPE:
|
level
|
How the first level is called.
TYPE:
|
diff
|
Used for recursion.
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
list[str]
|
List of differences in string format. |