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

Method serialize

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

Source from the content-addressed store, hash-verified

149 return to_idx[to_idx >= 0]
150
151 def serialize(self, prefix: str) -> dict[str, np.ndarray]:
152 return {
153 f"{prefix}/edges": self.edges.cpu().numpy(),
154 f"{prefix}/deg" : self.out_deg.cpu().numpy()
155 }
156
157 @classmethod
158 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