Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ __len__
Method
__len__
SwissArmyTransformer/sat/data_utils/datasets.py:80–81 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
78
self.items = [line.split(
'\t'
)
for
line in fin]
79
80
def
__len__(self):
81
return
len(self.items)
82
83
def
__getitem__(self, index):
84
return
self.process_fn(self.items[index])
Callers
3
process_fn
Function · 0.45
process_fn
Function · 0.45
process_fn
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected