From ff1ab722dff5c8adfbb27d2274d30b2950a909fd Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 15 Aug 2017 09:49:10 +0200 Subject: [PATCH] [minor] code cleanup --- QtPyLoT.py | 8 -------- pylot/core/util/widgets.py | 5 ----- 2 files changed, 13 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index a53ad4c4..5286d8a8 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -1941,11 +1941,6 @@ class MainWindow(QMainWindow): else: ax = self.getPlotWidget().axes ylims = np.array([-.5, +.5]) + plotID - if not self.pg: - phase_col = { - 'P': ('c', 'c--', 'b-', 'bv', 'b^', 'b'), - 'S': ('m', 'm--', 'r-', 'rv', 'r^', 'r') - } stat_picks = self.getPicks(type=picktype)[station] stime = self.getStime() @@ -1961,9 +1956,6 @@ class MainWindow(QMainWindow): elif phase[0] == 'S': quality = getQualityfromUncertainty(picks['spe'], self._inputs['timeerrorsS']) - if not self.pg: - colors = phase_col[phase[0].upper()] - mpp = picks['mpp'] - stime if picks['epp'] and picks['lpp']: epp = picks['epp'] - stime diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 314c26de..0750f156 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1697,16 +1697,11 @@ class PickDlg(QDialog): ylims = self.getGlobalLimits('y') else: ylims = self.getPlotWidget().getYLims() - phase_col = { - 'P': ('c', 'c--', 'b-', 'bv', 'b^', 'b', 'c:'), - 'S': ('m', 'm--', 'r-', 'rv', 'r^', 'r', 'm:') - } if self.getPicks(picktype): if phase is not None: if (type(self.getPicks(picktype)[phase]) is dict or type(self.getPicks(picktype)[phase]) is AttribDict): picks = self.getPicks(picktype)[phase] - colors = phase_col[self.getPhaseID(phase)] elif phase is None: for phase in self.getPicks(picktype): self.drawPicks(phase, picktype, textOnly)