From 55a54ae154b94e61d2684f17dd37ea0c8f364e2b Mon Sep 17 00:00:00 2001 From: marcel Date: Mon, 21 Aug 2017 14:50:18 +0200 Subject: [PATCH] [rename] getQualityFromUncertainty --- QtPyLoT.py | 6 +++--- pylot/core/pick/utils.py | 2 +- pylot/core/util/widgets.py | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/QtPyLoT.py b/QtPyLoT.py index ec2a9325..f647f205 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -64,7 +64,7 @@ from pylot.core.io.data import Data from pylot.core.io.inputs import FilterOptions, PylotParameter from autoPyLoT import autoPyLoT from pylot.core.pick.compare import Comparison -from pylot.core.pick.utils import symmetrize_error, getQualityfromUncertainty +from pylot.core.pick.utils import symmetrize_error, getQualityFromUncertainty from pylot.core.io.phases import picksdict_from_picks import pylot.core.loc.nll as nll from pylot.core.util.defaults import FILTERDEFAULTS, SetChannelComponents @@ -1998,10 +1998,10 @@ class MainWindow(QMainWindow): # get quality classes if self.getPhaseID(phase) == 'P': - quality = getQualityfromUncertainty(picks['spe'], self._inputs['timeerrorsP']) + quality = getQualityFromUncertainty(picks['spe'], self._inputs['timeerrorsP']) phaseID = 'P' elif self.getPhaseID(phase) == 'S': - quality = getQualityfromUncertainty(picks['spe'], self._inputs['timeerrorsS']) + quality = getQualityFromUncertainty(picks['spe'], self._inputs['timeerrorsS']) phaseID = 'S' mpp = picks['mpp'] - stime diff --git a/pylot/core/pick/utils.py b/pylot/core/pick/utils.py index 9322f64a..cc7b80ce 100644 --- a/pylot/core/pick/utils.py +++ b/pylot/core/pick/utils.py @@ -1098,7 +1098,7 @@ def checkZ4S(X, pick, zfac, checkwin, iplot, fig=None): return returnflag -def getQualityfromUncertainty(uncertainty, Errors): +def getQualityFromUncertainty(uncertainty, Errors): '''Script to transform uncertainty into quality classes 0-4 regarding adjusted time errors Errors. ''' diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 62a6dd80..cb38443d 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -44,7 +44,7 @@ from obspy.taup.utils import get_phase_names from pylot.core.io.data import Data from pylot.core.io.inputs import FilterOptions, PylotParameter from pylot.core.pick.utils import getSNR, earllatepicker, getnoisewin, \ - getResolutionWindow, getQualityfromUncertainty + getResolutionWindow, getQualityFromUncertainty from pylot.core.pick.compare import Comparison from pylot.core.util.defaults import OUTPUTFORMATS, FILTERDEFAULTS, \ SetChannelComponents @@ -1714,10 +1714,10 @@ class PickDlg(QDialog): # get quality classes if self.getPhaseID(phase) == 'P': - quality = getQualityfromUncertainty(picks['spe'], self.parameter['timeerrorsP']) + quality = getQualityFromUncertainty(picks['spe'], self.parameter['timeerrorsP']) phaseID = 'P' elif self.getPhaseID(phase) == 'S': - quality = getQualityfromUncertainty(picks['spe'], self.parameter['timeerrorsS']) + quality = getQualityFromUncertainty(picks['spe'], self.parameter['timeerrorsS']) phaseID = 'S' mpp = picks['mpp'] - self.getStartTime()