Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/fomosto/__init__.py: 100%

6 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-04 09:52 +0000

1# http://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

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

5 

6''' 

7Green's function store builders interfacing with the external modelling codes. 

8 

9This subpackage contains the GF builders which are used by :py:app:`fomosto` to 

10interface with the various supported numerical forward modelling tools 

11(:doc:`/apps/fomosto/backends`). ''' 

12 

13import os 

14import re 

15 

16op = os.path 

17 

18 

19modules = [m for m in os.listdir(op.dirname(__file__)) 

20 if re.search(r'[^_(dummy)].py', m)] 

21AVAILABLE_BACKENDS = set([op.splitext(m)[0] for m in modules])