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 sparrow(*args, **kwargs):
30 '''
31 Start Sparrow.
33 Calls :py:func:`pyrocko.gui.sparrow.main`.
34 '''
36 from pyrocko import deps
37 deps.require('vtk')
39 from pyrocko.gui.sparrow.main import main
40 return main(*args, **kwargs)