Exemplo n.º 1
0
 def _process_time(self, data_line: DataLine):
     if not data_line.has_second_header_word():
         msg = "Time file has no value for the TIME field."
         warnings.warn(msg)
         logger.warning(msg)
     else:
         self._name = data_line.second_header_word()
Exemplo n.º 2
0
 def _process_stoch(self, data_line: DataLine):
     if not data_line.has_second_header_word():
         msg = "Stoch file has no value for the STOCH field."
         warnings.warn(msg)
         logger.warning(msg)
     else:
         self._name = data_line.second_header_word()