diff --git a/pylot/core/util/map_projection.py b/pylot/core/util/map_projection.py index bb334570..e89f4c86 100644 --- a/pylot/core/util/map_projection.py +++ b/pylot/core/util/map_projection.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + import matplotlib.pyplot as plt import numpy as np import obspy @@ -13,6 +16,7 @@ plt.interactive(False) class map_projection(QtGui.QWidget): def __init__(self, parent, figure=None): ''' + :param: picked, can be False, auto, manual :value: str ''' diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 4abbf85a..b764c9d0 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -2027,7 +2027,7 @@ class PickDlg(QDialog): for picktype in allpicks.keys(): picks = allpicks[picktype] for phase in picks: - if not type(phase) in [dict, AttribDict]: + if not type(picks[phase]) in [dict, AttribDict]: continue pick_rel = picks[phase]['mpp'] - starttime # add relative pick time, phaseID and picktype index @@ -2039,8 +2039,8 @@ class PickDlg(QDialog): # delete the value from corresponding dictionary allpicks[picktype].pop(phase) # information output - msg = 'Deleted {} pick for phase {}, {}[s] from starttime {}' - print(msg.format(picktype, phase, pick_rel, starttime)) + msg = 'Deleted {} pick for phase {}, at timestamp {} (relative time: {} s)' + print(msg.format(picktype, phase, starttime+pick_rel, pick_rel)) self.setDirty(True) def drawPhaseText(self):