コード例 #1
0
ファイル: base.py プロジェクト: hschovanec-usgs/shakemap
 def __init__(self, eventid):
     """
     Instantiate a CoreModule class with an event ID.
     """
     self._eventid = eventid
     log_config = get_logging_config()
     log_name = log_config['loggers'].keys()[0]
     self.logger = logging.getLogger(log_name)
コード例 #2
0
ファイル: base.py プロジェクト: ynthdhj/shakemap
 def __init__(self, eventid):
     """
     Instantiate a CoreModule class with an event ID.
     """
     self._eventid = eventid
     log_config = get_logging_config()
     log_name = log_config['loggers'].keys()[0]
     self.logger = logging.getLogger(log_name)
コード例 #3
0
 def __init__(self, eventid, filter=None):
     """
     Instantiate a ContourModule class with an event ID.
     """
     self._eventid = eventid
     log_config = get_logging_config()
     log_name = log_config['loggers'].keys()[0]
     self.logger = logging.getLogger(log_name)
     if filter is not None:
         self.filter_size = filter
     else:
         self.filter_size = DEFAULT_FILTER_SIZE