MCPcopy Create free account
hub / github.com/modelscope/modelscope / __getitem__

Method __getitem__

modelscope/models/science/unifold/modules/frame.py:226–236  ·  view source on GitHub ↗
(
        self,
        index: Any,
    )

Source from the content-addressed store, hash-verified

224 )
225
226 def __getitem__(
227 self,
228 index: Any,
229 ) -> Frame:
230 if type(index) != tuple:
231 index = (index, )
232
233 return Frame(
234 self._r[index],
235 self._t[index + (slice(None), )],
236 )
237
238 def __mul__(
239 self,

Callers

nothing calls this directly

Calls 1

FrameClass · 0.85

Tested by

no test coverage detected