Skip to content

Commit

Permalink
Fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
JosePizarro3 committed Jul 25, 2024
1 parent b554aa9 commit b3dd0d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/nomad_parser_magres/parsers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def _check_units_magres(self, logger: 'BoundLogger') -> None:
for key, value in allowed_units.items():
data = self.magres_file_parser.get(f'{key}_units', '')
if data and data != value:
self.logger.warning(
logger.warning(
'The units of the NMR quantities are not parsed if they are not magres standard. '
'We will use the default units.',
data={
Expand Down
1 change: 0 additions & 1 deletion src/nomad_parser_magres/schema_packages/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ def __init__(
self, m_def: 'Section' = None, m_context: 'Context' = None, **kwargs
) -> None:
super().__init__(m_def, m_context, **kwargs)
self.rank = [] # ! move this to definitions

def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
super().normalize(archive, logger)
Expand Down

1 comment on commit b3dd0d3

@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_magres
   __init__.py4250%3–4
   _version.py11282%5–6
src/nomad_parser_magres/parsers
   __init__.py8275%9–11
   parser.py1964677%7–9, 218, 247–248, 261–265, 270–273, 297–298, 329–332, 401–404, 447–454, 493–503, 524–527, 547–550, 559–562, 568–569, 583, 590, 597, 616–619
src/nomad_parser_magres/parsers/utils
   __init__.py220%1–2
   magres_workflow.py12120%1–43
   utils.py2682680%1–616
src/nomad_parser_magres/schema_packages
   __init__.py8275%9–11
   package.py1024655%6–8, 37–56, 82, 85–88, 135–142, 145–155, 216–217, 220, 223, 226–229, 320–321, 324, 327–330, 366–367, 370
TOTAL61138237% 

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

Please sign in to comment.