mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 23:10:42 +01:00
11 lines
189 B
Python
11 lines
189 B
Python
def flatten(d):
|
|
import flatten_dict
|
|
|
|
return flatten_dict.flatten(d, reducer="dot")
|
|
|
|
|
|
def unflatten(d):
|
|
import flatten_dict
|
|
|
|
return flatten_dict.unflatten(d, splitter="dot")
|