Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

[chakra][et_jsonizer] Use the latest schema #62

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions utils/et_jsonizer/et_jsonizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
)

from chakra.et_def.et_def_pb2 import (
GlobalMetadata,
Node as ChakraNode,
)

Expand Down Expand Up @@ -37,6 +38,9 @@ def main() -> None:
et = open_file_rd(args.input_filename)
node = ChakraNode()
with open(args.output_filename, 'w') as f:
gm = GlobalMetadata()
decode_message(et, gm)
f.write(MessageToJson(gm))
while decode_message(et, node):
f.write(MessageToJson(node))
et.close()
Expand Down
Loading