MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / serialize_identifiers

Function serialize_identifiers

benchmarks/src/submit/submit.py:16–20  ·  view source on GitHub ↗
(identifiers: List[BenchmarkIdentifier], path: Path)

Source from the content-addressed store, hash-verified

14
15
16def serialize_identifiers(identifiers: List[BenchmarkIdentifier], path: Path):
17 items = [identifier.to_dict() for identifier in identifiers]
18
19 with open(path, "w") as f:
20 json.dump(items, f)
21
22
23def deserialize_identifiers(path: Path) -> List[BenchmarkIdentifier]:

Callers 1

submitFunction · 0.85

Calls 2

to_dictMethod · 0.80
dumpMethod · 0.45

Tested by

no test coverage detected