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

Method deserialize

src/pymgrid/microgrid/microgrid.py:963–967  ·  view source on GitHub ↗
(self, mapping)

Source from the content-addressed store, hash-verified

961 }
962
963 def deserialize(self, mapping):
964 self._balance_logger = self._balance_logger.from_raw(mapping.get("balance_log"))
965 self.trajectory_func = mapping.get('trajectory_func', None)
966 self._initial_step = mapping.get('initial_step', self.initial_step)
967 self._final_step = mapping.get('final_step', self.final_step)
968
969 @classmethod
970 def from_nonmodular(cls, nonmodular):

Callers 1

from_yamlMethod · 0.45

Calls 1

from_rawMethod · 0.80

Tested by

no test coverage detected