Coverage for /usr/local/lib/python3.11/dist-packages/grond/problems/__init__.py: 73%

15 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-10-26 16:25 +0000

1''' 

2Definition of the objective function and source model parameter space. 

3''' 

4import warnings 

5 

6from .base import * # noqa 

7from .cmt.problem import * # noqa 

8from .rectangular.problem import * # noqa 

9from .dynamic_rupture.problem import * # noqa 

10from .double_dc.problem import * # noqa 

11from .volume_point.problem import * # noqa 

12 

13try: 

14 from .vlvd.problem import * # noqa 

15except ImportError: 

16 warnings.warn( 

17 'could not import pyrocko.gf.VLVDSource. Update pyrocko to enable' 

18 ' inversion of VLVDProblem.', ImportWarning) 

19 

20try: 

21 from .dynamic_rupture import * # noqa 

22except ImportError: 

23 warnings.warn( 

24 'could not import pyrocko.gf.PseudoDynamicRuptureSource.' 

25 'Update pyrocko to enable inversion of DynamicRupture.', ImportWarning)