1 

2import sys 

3import pyrocko 

4if pyrocko.grumpy == 1: 

5 sys.stderr.write('using renamed pyrocko module: pyrocko.cake_plot\n') 

6 sys.stderr.write(' -> should now use: pyrocko.plot.cake_plot\n\n') 

7elif pyrocko.grumpy == 2: 

8 sys.stderr.write('pyrocko module has been renamed: pyrocko.cake_plot\n') 

9 sys.stderr.write(' -> should now use: pyrocko.plot.cake_plot\n\n') 

10 raise ImportError('Pyrocko module "pyrocko.cake_plot" has been renamed to "pyrocko.plot.cake_plot".') 

11 

12from pyrocko.plot.cake_plot import *