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

Method serialize

Module/Map/Graph.py:199–203  ·  view source on GitHub ↗
(self, prefix: str)

Source from the content-addressed store, hash-verified

197 return torch.tensor([], dtype=torch.long)
198
199 def serialize(self, prefix: str) -> dict[str, np.ndarray]:
200 return {
201 f"{prefix}/ranges": self.ranges.numpy(),
202 f"{prefix}/deg" : self.num_ranges.numpy()
203 }
204
205 @classmethod
206 def deserialize(cls, prefix: str, value: dict[str, np.ndarray]) -> Self:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected