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

Method load_custom_frame_data

benchmark/benchmark/core/loader.py:144–152  ·  view source on GitHub ↗

Load per-frame custom data via context's __load_{key}_file__ method.

(self, key: str)

Source from the content-addressed store, hash-verified

142 return loader_fn(self.artifact.root)
143
144 def load_custom_frame_data(self, key: str) -> Optional[List[Any]]:
145 """Load per-frame custom data via context's __load_{key}_file__ method."""
146 if self.context is None:
147 return None
148 loader_fn = getattr(self.context, f'__load_{key}_file__', None)
149 if loader_fn is None or not callable(loader_fn):
150 return None
151 N = self.get_num_frames()
152 return [loader_fn(self.artifact.root, f"{idx:06d}") for idx in range(N)]
153
154 def has_custom_frame_data(self, key: str) -> bool:
155 """Check if a frame key was saved (from .complete.json frame_keys)."""

Callers

nothing calls this directly

Calls 1

get_num_framesMethod · 0.95

Tested by

no test coverage detected