obspy.core.util.base._get_function_from_entry_point

_get_function_from_entry_point(group, type)[source]

A “automagic” function searching a given dict of entry points for a valid entry point and returns the function call. Otherwise it will raise a default error message.

Example

>>> _get_function_from_entry_point(
...     'detrend', 'simple')  
<function simple at 0x...>
>>> _get_function_from_entry_point('detrend', 'XXX')  
Traceback (most recent call last):
...
ValueError: Detrend type "XXX" is not supported. Supported types: ...