Load per-frame custom data via context's __load_{key}_file__ method.
(self, key: str)
| 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).""" |
nothing calls this directly
no test coverage detected