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
« 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----------
7from pyrocko.guts import String
8from .gshhg import GSHHGElement, GSHHGState
10guts_prefix = 'sparrow'
13class BordersState(GSHHGState):
15 dataset = String.T(default='borders')
17 def create(self):
18 element = BordersElement()
19 return element
22class BordersElement(GSHHGElement):
24 def __init__(self):
25 GSHHGElement.__init__(self, levels=(0,))
27 def get_name(self):
28 return 'Borders'
30 def bind_state(self, state):
31 GSHHGElement.bind_state(self, state)
34__all__ = [
35 'BordersElement',
36 'BordersState']