From 979be1520f14e2ffc1f6ea5f1eba5860bd2dce0a Mon Sep 17 00:00:00 2001 From: ndaelman Date: Wed, 11 Sep 2024 20:00:31 +0200 Subject: [PATCH] Clarify `parser_class_name` role --- src/nomad_parser_vasp/parsers/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/nomad_parser_vasp/parsers/__init__.py b/src/nomad_parser_vasp/parsers/__init__.py index 21205b2..7bff3dd 100644 --- a/src/nomad_parser_vasp/parsers/__init__.py +++ b/src/nomad_parser_vasp/parsers/__init__.py @@ -4,12 +4,14 @@ class VasprunXMLEntryPoint(ParserEntryPoint): parameter: int = Field(0, description='Custom configuration parameter') - parser_class_name='nomad_parser_vasp.parsers.xml_parser.VasprunXMLParser' def load(self): from nomad.parsing import MatchingParserInterface - return MatchingParserInterface(**self.dict()) + return MatchingParserInterface( + parser_class_name='nomad_parser_vasp.parsers.xml_parser.VasprunXMLParser', + **self.dict(), + ) xml_entry_point = VasprunXMLEntryPoint(