Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/gui/sparrow/elements/borders.py: 69%

16 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2024-01-15 12:05 +0000

1# https://pyrocko.org - GPLv3 

2# 

3# The Pyrocko Developers, 21st Century 

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

5 

6 

7from pyrocko.guts import String 

8from .gshhg import GSHHGElement, GSHHGState 

9 

10guts_prefix = 'sparrow' 

11 

12 

13class BordersState(GSHHGState): 

14 

15 dataset = String.T(default='borders') 

16 

17 def create(self): 

18 element = BordersElement() 

19 return element 

20 

21 

22class BordersElement(GSHHGElement): 

23 

24 def __init__(self): 

25 GSHHGElement.__init__(self, levels=(0,)) 

26 

27 def get_name(self): 

28 return 'Borders' 

29 

30 def bind_state(self, state): 

31 GSHHGElement.bind_state(self, state) 

32 

33 

34__all__ = [ 

35 'BordersElement', 

36 'BordersState']