File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/nomad_simulation_parsers/parsers/fhiaims Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 22import re
33from collections .abc import Iterable
44from importlib import reload
5- from typing import Any , Union
5+ from typing import Any
66
77import numpy as np
88from ase import Atoms
1616from nomad .parsing .file_parser .mapping_parser import (
1717 TextParser as TextMappingParser ,
1818)
19+ from nomad .utils import get_logger
1920from nomad_simulations .schema_packages .general import Program , Simulation
2021from nomad_simulations .schema_packages .workflow import (
2122 DFTGWWorkflow ,
4344from nomad_simulation_parsers .schema_packages import fhiaims
4445
4546from .common import ControlParser , GeometryParser
46- from nomad .utils import get_logger
47-
4847
4948LOGGER = get_logger (__name__ )
5049
5150
5251class FHIAimsOutMappingParser (TextMappingParser ):
5352 # TODO temporary fix for structlog unable to propagate logger
54- @property
55- def logger (self ):
56- return LOGGER
53+ logger = LOGGER
5754
5855 _gw_flag_map = {
5956 'gw' : 'G0W0' ,
@@ -561,7 +558,7 @@ def is_mainfile(
561558 buffer : bytes ,
562559 decoded_buffer : str ,
563560 compression : str = None ,
564- ) -> Union [ bool , Iterable [str ] ]:
561+ ) -> bool | Iterable [str ]:
565562 is_mainfile = super ().is_mainfile (
566563 filename = filename ,
567564 mime = mime ,
You can’t perform that action at this time.
0 commit comments