1# https://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

4# ---|P------/S----------~Lg---------- 

5 

6try: 

7 from .info import * # noqa 

8 __version__ = version # noqa 

9except ImportError: 

10 pass # not available in dev mode 

11 

12grumpy = 0 # noqa 

13 

14 

15def get_logger(): 

16 from .util import logging 

17 return logging.getLogger('pyrocko') 

18 

19 

20class ExternalProgramMissing(Exception): 

21 pass 

22 

23 

24def make_squirrel(*args, **kwargs): 

25 from pyrocko.squirrel import Squirrel 

26 return Squirrel(*args, **kwargs) 

27 

28 

29def sparrow(*args, **kwargs): 

30 ''' 

31 Start Sparrow. 

32 

33 Calls :py:func:`pyrocko.gui.sparrow.main`. 

34 ''' 

35 

36 from pyrocko import deps 

37 deps.require('vtk') 

38 

39 from pyrocko.gui.sparrow.main import main 

40 return main(*args, **kwargs) 

41 

42 

43def drum(*args, **kwargs): 

44 ''' 

45 Start Drum Plot. 

46 

47 Calls :py:func:`pyrocko.gui.drum.main`. 

48 ''' 

49 

50 from pyrocko.gui.drum.main import main 

51 return main(*args, **kwargs)