zeromodel 0.1.1a1
“ZeroModel: Data-centric AI with visual policy maps”
Python json.loads callzlib.compress symbol
SHA-256edba23bfece4a24a02717841a5f3fffe699fbd912078c78bc033ba7054a4be6a
MaleculeH₂(Db₂F)
Evidence
34 source = Path(path)
35 with zipfile.ZipFile(source, "r") as zf:
36 payload = json.loads(zf.read(MANIFEST_NAME).decode("utf-8"))
37 if payload.get("bundle_version") != BUNDLE_VERSION:
38 raise ValueError("Unsupported bundle_version: %r" % payload.get("bundle_version"))
⋯4 lines
35 ihdr = struct.pack("!IIBBBBB", width, height, 8, 0, 0, 0, 0)
36 scanlines = b"".join(b"\x00" + image[row].tobytes() for row in range(height))
37 return PNG_SIGNATURE + _chunk(b"IHDR", ihdr) + _chunk(b"IDAT", zlib.compress(scanlines)) + _chunk(b"IEND", b"")
42 target = Path(path)
43 target.parent.mkdir(parents=True, exist_ok=True)
44 target.write_bytes(png_bytes(field))
45 return target
63def _sha256_hex(value: Any) -> str:
64 return hashlib.sha256(_canonical_json_bytes(value)).hexdigest()
No evidence locations were recorded for this file. Raw result