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

Method from_raw

src/pymgrid/utils/logger.py:54–59  ·  view source on GitHub ↗
(cls, raw)

Source from the content-addressed store, hash-verified

52
53 @classmethod
54 def from_raw(cls, raw):
55 if raw is None:
56 return cls()
57 elif isinstance(raw, str):
58 raw = pd.read_csv(raw).to_dict()
59 return cls(raw)

Callers 2

from_yamlMethod · 0.80
deserializeMethod · 0.80

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected