[minor] changed message for pick deletion

This commit is contained in:
Marcel Paffrath 2018-08-13 17:44:24 +02:00
parent f22f7845cb
commit a82a1cddc8

View File

@ -77,12 +77,13 @@ class Array_map(QtGui.QWidget):
pick = picks.get(phase) pick = picks.get(phase)
if pick: if pick:
picker = pick['picker'] picker = pick['picker']
message = 'Deleted {} pick for phase {}, station {}.{} at timestamp {}'
message = message.format(picker, phase, network, station,
pick['mpp'])
if picker == 'auto': if picker == 'auto':
del(self.autopicks_dict[station]) del(self.autopicks_dict[station])
message = 'Removed automatic pick for station {}, phase {}'.format(station, phase)
elif picker == 'manual': elif picker == 'manual':
del(self.picks_dict[station]) del(self.picks_dict[station])
message = 'Removed manual pick for station {}, phase {}'.format(station, phase)
else: else:
raise TypeError('Unknown "picker" {}'.format(picker)) raise TypeError('Unknown "picker" {}'.format(picker))
print(message) print(message)