Skip to content
Snippets Groups Projects
Commit 54931005 authored by Lauri Himanen's avatar Lauri Himanen
Browse files

Added the JSON header and footer.

parent faa46a62
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -38,6 +38,7 @@ class BigDFTMainParser(AbstractBaseParser):
directly into memory.
"""
self.prepare()
self.print_json_header()
with open(self.file_path, "r") as fin:
try:
# Open default sections and output default information
......@@ -70,6 +71,8 @@ class BigDFTMainParser(AbstractBaseParser):
except YAMLError:
raise Exception("There was a syntax error in the BigDFT YAML output file.")
self.print_json_footer()
def generate_root_nodes(self, loader):
# Ignore the first two events
loader.get_event() # StreamStarEvetn
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment