[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)
if pick:
picker = pick['picker']
message = 'Deleted {} pick for phase {}, station {}.{} at timestamp {}'
message = message.format(picker, phase, network, station,
pick['mpp'])
if picker == 'auto':
del(self.autopicks_dict[station])
message = 'Removed automatic pick for station {}, phase {}'.format(station, phase)
elif picker == 'manual':
del(self.picks_dict[station])
message = 'Removed manual pick for station {}, phase {}'.format(station, phase)
else:
raise TypeError('Unknown "picker" {}'.format(picker))
print(message)