1# https://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6try:
7 from .info import * # noqa
8 __version__ = version # noqa
9except ImportError:
10 pass # not available in dev mode
12grumpy = 0 # noqa
15def get_logger():
16 from .util import logging
17 return logging.getLogger('pyrocko')
20class ExternalProgramMissing(Exception):
21 pass
24def make_squirrel(*args, **kwargs):
25 from pyrocko.squirrel import Squirrel
26 return Squirrel(*args, **kwargs)
29def snuffle(*args, **kwargs):
30 '''
31 Start Snuffler.
33 Calls :py:func:`pyrocko.gui.snuffler.snuffle`
34 '''
36 from pyrocko import deps
38 deps.require('PyQt5.Qt')
39 deps.require('PyQt5.QtWebEngine')
41 from pyrocko.gui.snuffler import snuffler
42 return snuffler.snuffle(*args, **kwargs)
45def sparrow(*args, **kwargs):
46 '''
47 Start Sparrow.
49 Calls :py:func:`pyrocko.gui.sparrow.main`.
50 '''
52 from pyrocko import deps
54 deps.require('vtk')
55 deps.require('PyQt5.Qt')
56 # deps.import_optional('kite', 'InSAR visualization')
58 from pyrocko.gui.sparrow.main import main
59 return main(*args, **kwargs)
62def drum(*args, **kwargs):
63 '''
64 Start Drum Plot.
66 Calls :py:func:`pyrocko.gui.drum.main`.
67 '''
69 from pyrocko import deps
71 deps.require('PyQt5.Qt')
72 deps.require('serial')
74 from pyrocko.gui.drum.main import main
75 return main(*args, **kwargs)