Coverage for /usr/local/lib/python3.11/dist-packages/grond/analysers/base.py: 88%

16 statements  

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

1from pyrocko.guts import Object 

2 

3from grond.meta import GrondError 

4 

5guts_prefix = 'grond' 

6 

7 

8class Analyser(object): 

9 

10 def analyse(self, problem, ds): 

11 pass 

12 

13 def get_rstate(self, problem, seed=None): 

14 return problem.get_rstate_manager().get_rstate( 

15 self.__class__.__name__, seed) 

16 

17 

18class AnalyserConfig(Object): 

19 

20 def get_analyser(self): 

21 return Analyser 

22 

23 

24class AnalyserResult(Object): 

25 

26 class NoResults(GrondError): 

27 pass 

28 

29 pass 

30 

31 

32__all__ = ''' 

33 Analyser 

34 AnalyserConfig 

35'''.split()