File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed
src/nomad_simulation_parsers/parsers Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 1414 XMLParser ,
1515)
1616from nomad .units import ureg
17+ from nomad .utils import get_logger
1718from nomad_simulations .schema_packages .general import Simulation
1819from structlog .stdlib import (
1920 BoundLogger ,
2930from .info_parser import InfoFileParser
3031
3132
33+ LOGGER = get_logger (__name__ )
34+
35+
3236class InfoParser (TextParser ):
37+ # TODO temporary fix for structlog unable to propagate logger
38+ @property
39+ def logger (self ):
40+ return LOGGER
41+
3342 def get_xc_functionals (self , xc_type : int ) -> list [dict [str , Any ]]:
3443 xc_functional_map = {
3544 2 : ['LDA_C_PZ' , 'LDA_X_PZ' ],
Original file line number Diff line number Diff line change 4949LOGGER = get_logger (__name__ )
5050
5151
52- # TODO temporary fix for structlog unable to propagate logger
53- @with_logger (logger = LOGGER )
5452class FHIAimsOutMappingParser (TextMappingParser ):
53+ # TODO temporary fix for structlog unable to propagate logger
54+ @property
55+ def logger (self ):
56+ return LOGGER
5557
5658 _gw_flag_map = {
5759 'gw' : 'G0W0' ,
You can’t perform that action at this time.
0 commit comments