Commit 3670915d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Revised logging.

parent 124adddc
......@@ -16,12 +16,11 @@ import os
import logging
from nomadcore.baseclasses import ParserInterface
import nomadcore.baseclasses
from vaspparser.parser_vasprun import parserInfo
from vaspparser.parser_vasprun import VasprunContext, XmlParser, parserInfo
logger = logging.getLogger(__name__)
class VASPRunParser:
......@@ -32,7 +31,8 @@ class VASPRunParser:
self.parser_context = parser_context
def parse(self, filepath):
superContext = VasprunContext(logger=logger)
# the nomadcore.baseclasses.logger is set for each parsing run
superContext = VasprunContext(logger=nomadcore.baseclasses.logger)
parser = XmlParser(parserInfo, superContext)
backend = self.parser_context.super_backend
parser.parse(os.path.abspath(filepath), open(filepath), backend)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment