Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Added configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Jun 17, 2024
1 parent cd3fa07 commit feecd8f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nomad_parser_wannier90/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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*\|',
)
5 changes: 5 additions & 0 deletions src/nomad_parser_wannier90/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()
Expand Down

1 comment on commit feecd8f

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/nomad_parser_wannier90/parsers
   __init__.py8275%9–11
   band_parser.py441175%39, 65–66, 76–77, 80–81, 93–94, 99–100
   dos_parser.py18194%33
   hr_parser.py47883%43, 61–62, 74–75, 109–111
   parser.py4888283%79–133, 342–343, 383, 401, 440–441, 468, 483, 498, 540, 641–642, 701–705, 710–711, 713, 719–724, 730, 732–735, 739, 756–758, 760–761, 786–793, 797–798, 803, 827–828, 843–844, 848, 904–908, 913, 915, 926–927, 932, 979–983, 989
   schema.py330%20–25
   win_parser.py962772%53, 110–116, 139–141, 143–144, 182, 191–193, 203–205, 226–229, 236, 238–239, 243, 260–264
src/nomad_parser_wannier90/parsers/utils
   utils.py14379%46–48
TOTAL71913781% 

Tests Skipped Failures Errors Time
2 0 💤 1 ❌ 0 🔥 16.114s ⏱️

Please sign in to comment.