config¶
Functions, classes and methods for configuring the RT-EQcorrscan system.
config.config¶
Handle configuration of RT_EQcorrscan using a yaml file.
-
class
rt_eqcorrscan.config.config.
Config
(log_level='INFO', log_formatter='%(asctime)s\\t[%(processName)s:%(threadName)s]: %(name)s\\t%(levelname)s\\t%(message)s', **kwargs)[source]¶ Base configuration parameters from RT_EQcorrscan.
- Parameters
log_level (
str
) – Any parsable string for logging.basicConfiglog_formatter (
str
) – Any parsable string formatter for logging.basicConfigrt_match_filter – Config values for real-time matched-filtering
reactor – Config values for the Reactor
plot – Config values for real-time plotting
database_manager – Config values for the database manager.
template – Config values for template creation.
streaming – Config values for real-time streaming
-
class
rt_eqcorrscan.config.config.
DatabaseManagerConfig
(*args, **kwargs)[source]¶ A holder for configuration values for database management.
Works like a dictionary and can have anything added to it.
-
class
rt_eqcorrscan.config.config.
PlotConfig
(*args, **kwargs)[source]¶ A holder for configuration values for real-time matched-filter plotting.
Works like a dictionary and can have anything added to it.
-
class
rt_eqcorrscan.config.config.
RTMatchFilterConfig
(*args, **kwargs)[source]¶ A holder for configuration values for real-time matched-filtering.
Works like a dictionary and can have anything added to it.
To enable you to provide your own streaming service you should write your own class subclassing rt_eqcorrscan.streaming.streaming._StreamingClient, and set the parameter rt_client_base to be the import path for your class.
-
class
rt_eqcorrscan.config.config.
ReactorConfig
(*args, **kwargs)[source]¶ A holder for configuration values for the reactor.
Works like a dictionary and can have anything added to it.