Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Sep 23, 2024
1 parent 14e0d38 commit a615363
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/nomad_parser_wannier90/parsers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ def load(self):
description='Entry point for the Wannier90 parser.',
python_package='nomad_parser_wannier90.parsers',
parser_class_name='nomad_parser_wannier90.parsers.parser.Wannier90Parser',
# parser_as_interface=False, # in order to use `child_archives` and auto workflows
level=1,
mainfile_contents_re=r'\|\s*WANNIER90\s*\|',
)
4 changes: 3 additions & 1 deletion src/nomad_parser_wannier90/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,8 @@ def __init__(self, *args, **kwargs):
'Nband': 'n_bloch_bands',
}

self._child_archives = {}

def init_parser(self, logger: 'BoundLogger') -> None:
"""
Initialize the `WOutParser` with the mainfile and logger.
Expand Down Expand Up @@ -530,7 +532,7 @@ def parse(
dft_files = self.workflow_dft_files(filename=self.mainfile)
if len(dft_files) == 1:
dft_path = dft_files[-1].split('raw/')[-1]
filepath_stripped = self.filepath.split('raw/')[-1]
filepath_stripped = self.mainfile.split('raw/')[-1]
try:
# For automatic workflows
from nomad.app.v1.models import MetadataRequired
Expand Down

1 comment on commit a615363

@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
   __init__.py4250%3–4
   _version.py11282%5–6
src/nomad_parser_wannier90/parsers
   __init__.py9278%20–22
   band_parser.py511571%4, 24, 50–51, 73–74, 77–78, 85–89, 98–99, 104–105
   dos_parser.py18194%13
   hr_parser.py48981%4, 28, 46–47, 59–60, 94–96
   parser.py2244580%8, 215, 269–270, 310, 328, 367–368, 385, 402, 419, 465, 475–478, 508, 534–589
   win_parser.py973168%4, 35, 92–98, 119, 121–123, 127–128, 160–163, 168, 177–179, 189–191, 212–215, 222, 224–225, 229, 246–250
src/nomad_parser_wannier90/parsers/utils
   utils.py291355%4, 35–37, 56–71
src/nomad_parser_wannier90/schema_packages
   __init__.py8275%9–11
   package.py550%1–11
TOTAL50512775% 

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

Please sign in to comment.