예제 #1
0
 def _build_parser(self, parser_state, infile):
     """
     Build and return the parser
     """
     config = self._parser_config
     config.update({
         'particle_module':
         'mi.dataset.parser.wfp_eng__stc_imodem',
         'particle_class': [
             'Wfp_eng__stc_imodem_statusParserDataParticle',
             'Wfp_eng__stc_imodem_startParserDataParticle',
             'Wfp_eng__stc_imodem_engineeringParserDataParticle'
         ]
     })
     log.debug("My Config: %s", config)
     self._parser = Wfp_eng__stc_imodemParser(
         config, parser_state, infile, self._save_parser_state,
         self._data_callback, self._sample_exception_callback)
     return self._parser