Coverage for /usr/local/lib/python3.11/dist-packages/pyrocko/gui/snuffler/snufflings/map/xmlMarker.py: 100%
26 statements
« prev ^ index » next coverage.py v6.5.0, created at 2023-10-06 06:59 +0000
« prev ^ index » next coverage.py v6.5.0, created at 2023-10-06 06:59 +0000
1# https://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6from pyrocko.guts import Object, String, Float, List
9class XMLEventMarker(Object):
10 xmltagname = 'eventmarker'
11 active = String.T(default='no', xmlstyle='attribute')
12 eventname = String.T(default='')
13 latitude = Float.T(optional=False)
14 longitude = Float.T(optional=False)
15 origintime = String.T(default='')
16 magnitude = Float.T(optional=False, default=0.0)
17 depth = Float.T(optional=False)
20class EventMarkerList(Object):
21 xmltagname = 'eventmarkerlist'
22 events = List.T(XMLEventMarker.T())
25class XMLStationMarker(Object):
26 xmltagname = 'stationmarker'
27 active = String.T(default='no', xmlstyle='attribute')
28 nsl = String.T()
29 latitude = Float.T(optional=False)
30 longitude = Float.T(optional=False)
33class StationMarkerList(Object):
34 xmltagname = 'stationmarkerlist'
35 stations = List.T(XMLStationMarker.T())
38class MarkerLists(Object):
39 xmltagname = 'markerlists'
40 station_marker_list = StationMarkerList.T()
41 event_marker_list = EventMarkerList.T()