diff --git a/src/nomad_parser_wannier90/parsers/__init__.py b/src/nomad_parser_wannier90/parsers/__init__.py index f7c6834..44ee994 100644 --- a/src/nomad_parser_wannier90/parsers/__init__.py +++ b/src/nomad_parser_wannier90/parsers/__init__.py @@ -8,11 +8,12 @@ class Wannier90ParserEntryPoint(ParserEntryPoint): def load(self): from nomad_parser_wannier90.parsers.parser import Wannier90Parser - return Wannier90Parser() + return Wannier90Parser(**self.dict()) nomad_parser_wannier90_plugin = Wannier90ParserEntryPoint( name='Wannier90ParserEntryPoint', description='Entry point for the Wannier90 parser.', + level=1, mainfile_contents_re=r'\|\s*Wannier90\s*\|', ) diff --git a/src/nomad_parser_wannier90/parsers/parser.py b/src/nomad_parser_wannier90/parsers/parser.py index 073234e..5c6e98d 100644 --- a/src/nomad_parser_wannier90/parsers/parser.py +++ b/src/nomad_parser_wannier90/parsers/parser.py @@ -23,6 +23,7 @@ from typing import List, Optional from structlog.stdlib import BoundLogger +from nomad.config import config from nomad.units import ureg from nomad.datamodel import EntryArchive from nomad.parsing.file_parser import TextParser, Quantity, DataTextParser @@ -69,6 +70,10 @@ re_n = r'[\n\r]' +configuration = config.get_plugin_entry_point( + 'nomad_parser_wannier90.parsers:nomad_parser_wannier90_plugin' +) + def test(template, atom_indices: list[int], **kwargs): simulation = Simulation()