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

Method serialize

src/pymgrid/microgrid/microgrid.py:948–952  ·  view source on GitHub ↗

:meta private:

(self, dumper_stream)

Source from the content-addressed store, hash-verified

946 return instance
947
948 def serialize(self, dumper_stream):
949 """
950 :meta private:
951 """
952 return dump_data(self._serialization_data(), dumper_stream, self.yaml_tag)
953
954 def _serialization_data(self):
955 return {

Callers 2

to_yamlMethod · 0.45
_serialization_dataMethod · 0.45

Calls 2

_serialization_dataMethod · 0.95
dump_dataFunction · 0.90

Tested by

no test coverage detected