obsplus.get_event_client¶
- obsplus.get_event_client(events)[source]¶
Extract an event client from various inputs.
- Parameters:
events (
Path
|str
|Catalog
|Event
|EventClient
) –- Any of the following:
A path to an obspy-readable event file
A path to a directory of obspy-readable event files
An obspy.Catalog instance
An instance of
EventBank
Any other object that has a get_events method
- Raises:
TypeError – If an event client cannot be determined from the input.
- Return type: