Skip to content

Commit

Permalink
Move mix_alpha outside parser class
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaelman committed Sep 13, 2024
1 parent aa80928 commit dc31a27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nomad_parser_vasp/parsers/xml_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
'nomad_parser_vasp.parsers:xml_entry_point'
)

mix_alpha = lambda mix, cond: mix if cond else 0 # pylint: disable=W0613


class VasprunXMLParser:
def parse(
Expand All @@ -31,7 +33,6 @@ def parse(
child_archives: 'dict[str, EntryArchive]' = None,
) -> None:
logger.info(self.__class__.__name__, parameter=configuration.parameter)
mix_alpha = staticmethod(lambda mix, cond: mix if cond else 0) # pylint: disable=W0613

data_parser = MetainfoParser(annotation_key='xml', data_object=Simulation())
XMLParser(filepath=mainfile).convert(data_parser)
Expand Down

0 comments on commit dc31a27

Please sign in to comment.