Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
parser-big-dft
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
nomad-lab
parser-big-dft
Commits
54931005
There was a problem fetching the pipeline summary.
Commit
54931005
authored
8 years ago
by
Lauri Himanen
Browse files
Options
Downloads
Patches
Plain Diff
Added the JSON header and footer.
parent
faa46a62
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
parser/parser-big-dft/bigdftparser/versions/bigdft18/mainparser.py
+3
-0
3 additions, 0 deletions
...rser-big-dft/bigdftparser/versions/bigdft18/mainparser.py
with
3 additions
and
0 deletions
parser/parser-big-dft/bigdftparser/versions/bigdft18/mainparser.py
+
3
−
0
View file @
54931005
...
@@ -38,6 +38,7 @@ class BigDFTMainParser(AbstractBaseParser):
...
@@ -38,6 +38,7 @@ class BigDFTMainParser(AbstractBaseParser):
directly into memory.
directly into memory.
"""
"""
self
.
prepare
()
self
.
prepare
()
self
.
print_json_header
()
with
open
(
self
.
file_path
,
"
r
"
)
as
fin
:
with
open
(
self
.
file_path
,
"
r
"
)
as
fin
:
try
:
try
:
# Open default sections and output default information
# Open default sections and output default information
...
@@ -70,6 +71,8 @@ class BigDFTMainParser(AbstractBaseParser):
...
@@ -70,6 +71,8 @@ class BigDFTMainParser(AbstractBaseParser):
except
YAMLError
:
except
YAMLError
:
raise
Exception
(
"
There was a syntax error in the BigDFT YAML output file.
"
)
raise
Exception
(
"
There was a syntax error in the BigDFT YAML output file.
"
)
self
.
print_json_footer
()
def
generate_root_nodes
(
self
,
loader
):
def
generate_root_nodes
(
self
,
loader
):
# Ignore the first two events
# Ignore the first two events
loader
.
get_event
()
# StreamStarEvetn
loader
.
get_event
()
# StreamStarEvetn
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment