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

Function _load_single_frame

demo_render/rgbd_render/data/loader.py:31–34  ·  view source on GitHub ↗

Load one per-frame npz, keeping only keys the renderer needs.

(path: str)

Source from the content-addressed store, hash-verified

29
30
31def _load_single_frame(path: str) -> Dict[str, np.ndarray]:
32 """Load one per-frame npz, keeping only keys the renderer needs."""
33 data = np.load(path, allow_pickle=False)
34 return {key: data[key] for key in data.files if key in _NEEDED_KEYS}
35
36
37def _load_perframe_dir(dir_path: str, num_workers: int = 16) -> Dict[str, np.ndarray]:

Callers

nothing calls this directly

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected