MCPcopy Create free account
hub / github.com/Robbyant/lingbot-map / load

Method load

demo_render/interactive_viewer/camera.py:262–265  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

260 json.dump(data, f, indent=2)
261
262 def load(self, path: str):
263 with open(path) as f:
264 data = json.load(f)
265 self.keyframes = [Keyframe.from_dict(d) for d in data]
266
267 def to_list(self) -> List[dict]:
268 return [kf.to_dict() for kf in self.keyframes]

Callers

nothing calls this directly

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected