Take renaming of existing function into account.
This commit is contained in:
parent
dabd7f463c
commit
6722024749
@ -879,7 +879,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1):
|
|||||||
Ludger Küperkoch, BESTEC GmbH, 07/2017
|
Ludger Küperkoch, BESTEC GmbH, 07/2017
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from pylot.core.pick.utils import getQualityfromUncertainty
|
from pylot.core.pick.utils import getQualityFromUncertainty
|
||||||
from pylot.core.util.utils import loopIdentifyPhase, identifyPhase
|
from pylot.core.util.utils import loopIdentifyPhase, identifyPhase
|
||||||
|
|
||||||
# read all onset weights
|
# read all onset weights
|
||||||
@ -927,7 +927,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1):
|
|||||||
for Pick in arrivals_copy:
|
for Pick in arrivals_copy:
|
||||||
phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint)))
|
phase = identifyPhase(loopIdentifyPhase(Pick.phase_hint)))
|
||||||
if phase == 'P':
|
if phase == 'P':
|
||||||
Pqual = getQualitiesfromxml(Pick.time_errors.uncertainty, ErrorsP)
|
Pqual = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsP)
|
||||||
if Pqual == 0:
|
if Pqual == 0:
|
||||||
Pw0.append(Pick.time_errors.uncertainty)
|
Pw0.append(Pick.time_errors.uncertainty)
|
||||||
elif Pqual == 1:
|
elif Pqual == 1:
|
||||||
@ -939,7 +939,7 @@ def getQualitiesfromxml(xmlnames, ErrorsP, ErrorsS, plotflag=1):
|
|||||||
elif Pqual == 4
|
elif Pqual == 4
|
||||||
Pw4.append(Pick.time_errors.uncertainty)
|
Pw4.append(Pick.time_errors.uncertainty)
|
||||||
elif phase == 'S':
|
elif phase == 'S':
|
||||||
Squal = getQualitiesfromxml(Pick.time_errors.uncertainty, ErrorsS)
|
Squal = getQualityFromUncertainty(Pick.time_errors.uncertainty, ErrorsS)
|
||||||
if Squal == 0:
|
if Squal == 0:
|
||||||
Sw0.append(Pick.time_errors.uncertainty)
|
Sw0.append(Pick.time_errors.uncertainty)
|
||||||
elif Squal == 1:
|
elif Squal == 1:
|
||||||
|
Loading…
Reference in New Issue
Block a user