def dummy_mag(self): scnls = ["UK.STA1..HHZ", "UK.STA2..HHZ"] eve = ev.Event() sms = sm_generator(scnls=scnls) smcs = [] for sm in sms: smcs.append( ev.StationMagnitudeContribution( station_magnitude_id=sm.resource_id)) mag = ev.Magnitude(mag=1, station_magnitude_contributions=smcs) eve.magnitudes = [mag] eve.station_magnitudes = sms return eve
def _get_station_mag_contrib(): return ev.StationMagnitudeContribution( station_magnitude_id=state['station_mag_id'], )