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

Method to_yaml

src/pymgrid/microgrid/microgrid.py:923–928  ·  view source on GitHub ↗

:meta private:

(cls, dumper, data)

Source from the content-addressed store, hash-verified

921
922 @classmethod
923 def to_yaml(cls, dumper, data):
924 """
925 :meta private:
926 """
927 add_numpy_pandas_representers()
928 return dumper.represent_mapping(cls.yaml_tag, data.serialize(dumper.stream), flow_style=cls.yaml_flow_style)
929
930 @classmethod
931 def from_yaml(cls, loader, node):

Callers

nothing calls this directly

Calls 2

serializeMethod · 0.45

Tested by

no test coverage detected