Source code for pyrocko

# https://pyrocko.org - GPLv3
#
# The Pyrocko Developers, 21st Century
# ---|P------/S----------~Lg----------

'''
A toolbox and library for seismology.
'''

try:
    from .info import *  # noqa
    __version__ = version  # noqa
except ImportError:
    pass  # not available in dev mode

grumpy = 0  # noqa


def get_logger():
    from .util import logging
    return logging.getLogger('pyrocko')


class ExternalProgramMissing(Exception):
    pass


def make_squirrel(*args, **kwargs):
    from pyrocko.squirrel import Squirrel
    return Squirrel(*args, **kwargs)


[docs]def snuffle(*args, **kwargs): ''' Start Snuffler. Calls :py:func:`pyrocko.gui.snuffler.snuffler.snuffle` ''' from pyrocko import deps deps.require('PyQt5.Qt') deps.require('PyQt5.QtWebEngine') from pyrocko.gui.snuffler import snuffler return snuffler.snuffle(*args, **kwargs)
[docs]def sparrow(*args, **kwargs): ''' Start Sparrow. Calls :py:func:`pyrocko.gui.sparrow.main`. ''' from pyrocko import deps deps.require('vtk') deps.require('PyQt5.Qt') # deps.import_optional('kite', 'InSAR visualization') from pyrocko.gui.sparrow.main import main return main(*args, **kwargs)
[docs]def drum(*args, **kwargs): ''' Start Drum Plot. Calls :py:func:`pyrocko.gui.drum.main`. ''' from pyrocko import deps deps.require('PyQt5.Qt') deps.require('serial') from pyrocko.gui.drum.main import main return main(*args, **kwargs)