5.17.1.3. eqcorrscan.utils.trigger.TriggerParameters¶
-
class
eqcorrscan.utils.trigger.
TriggerParameters
(header={})[source]¶ Bases:
obspy.core.util.attribdict.AttribDict
Base class for trigger parameters.
>>> from eqcorrscan.utils.trigger import TriggerParameters >>> defaults = TriggerParameters() >>> defaults.station = 'TEST' >>> # Or use dictionaries >>> defaults['station'] = 'ALF' >>> defaults = TriggerParameters({'station': 'TEST', ... 'channel': 'SHZ', ... 'sta_len': 0.3, ... 'lta_len': 10.0, ... 'thr_on': 10, ... 'thr_off': 3, ... 'lowcut': 2, ... 'highcut': 20}) >>> print(defaults.station) TEST
Methods
__init__
([header])clear
()copy
()get
(k[,d])items
()keys
()pop
(k[,d])If key is not found, d is returned if given, otherwise KeyError is raised. popitem
()as a 2-tuple; but raise KeyError if D is empty. setdefault
(k[,d])update
([E, ]**F)If E present and has a . values
()write
(filename[, append])Write the parameters to a file as a human-readable series of dicts. Attributes
defaults
do_not_warn_on
readonly
warn_on_non_default_key