Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/io_common.py: 60%

10 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2024-03-07 11:54 +0000

1 

2""" 

3This module has been moved to :py:mod:`pyrocko.io.io_common`. 

4""" 

5import sys 

6import pyrocko 

7if pyrocko.grumpy == 1: 

8 sys.stderr.write('using renamed pyrocko module: pyrocko.io_common\n') 

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

10elif pyrocko.grumpy == 2: 

11 sys.stderr.write('pyrocko module has been renamed: pyrocko.io_common\n') 

12 sys.stderr.write(' -> should now use: pyrocko.io.io_common\n\n') 

13 raise ImportError('Pyrocko module "pyrocko.io_common" has been renamed to "pyrocko.io.io_common".') 

14 

15from pyrocko.io.io_common import *