MCPcopy Create free account
hub / github.com/ahalev/python-microgrid / dump_data

Function dump_data

src/pymgrid/utils/serialize.py:34–39  ·  view source on GitHub ↗
(data_dict, stream, yaml_tag)

Source from the content-addressed store, hash-verified

32
33
34def dump_data(data_dict, stream, yaml_tag):
35 if not hasattr(stream, "name"):
36 return data_dict
37
38 path = Path(stream.name).parent / "data"
39 return add_path_to_arr_like(data_dict, path, yaml_tag)
40
41
42def add_path_to_arr_like(data_dict, path, yaml_tag):

Callers 2

serializeMethod · 0.90
serializeMethod · 0.90

Calls 1

add_path_to_arr_likeFunction · 0.85

Tested by

no test coverage detected