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

Method load

demo_render/rgbd_render/camera.py:252–260  ·  view source on GitHub ↗

Load from JSON.

(cls, path: str)

Source from the content-addressed store, hash-verified

250
251 @classmethod
252 def load(cls, path: str) -> 'CameraPath':
253 """Load from JSON."""
254 with open(path) as f:
255 data = json.load(f)
256 return cls(
257 keyframes=data['keyframes'],
258 total_frames=data['total_frames'],
259 interpolation=data.get('interpolation', 'smoothstep'),
260 )
261
262
263# ---------------------------------------------------------------------------

Callers 6

_load_oneFunction · 0.45
render_with_pipelineFunction · 0.45
mainFunction · 0.45
load_modelFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected