MCPcopy Create free account
hub / github.com/MAC-VO/MAC-VO / __len__

Method __len__

Module/Map/Graph.py:54–55  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 self.data[k] = func(self.data[k])
53
54 def __len__(self) -> int:
55 return self.index.size(0)
56
57 def __repr__(self) -> str:
58 return f"TensorBundle(size={len(self)}, keys=[{', '.join(self.data.keys())}])"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected