Something went wrong on our end
-
Lauri Himanen authored
Fixed DOS values to SI, added regression testing functionality and a few simple tests, fixed DOS energy shape to 1D array.
Lauri Himanen authoredFixed DOS values to SI, added regression testing functionality and a few simple tests, fixed DOS energy shape to 1D array.
vaspmainparser.py 789 B
from __future__ import absolute_import
import logging
import os
from parser_vasprun import VasprunContext, XmlParser, parserInfo
LOGGER = logging.getLogger("nomad")
#===============================================================================
class VASPMainParser(object):
"""The main parser class that is called for all run types. Parses the VASP
XML output files.
"""
def __init__(self, filepath, parser_context):
"""
"""
self.parser_context = parser_context
self.filepath = filepath
def parse(self):
superContext = VasprunContext()
parser = XmlParser(parserInfo, superContext)
backend = self.parser_context.super_backend
parser.parse(os.path.abspath(self.filepath), open(self.filepath), backend)