[Bugifx] Taup model was hard coded as iasp91.

This commit is contained in:
Ludger Küperkoch 2021-07-07 11:10:23 +02:00
parent 8b03aab381
commit 30eb8fbbbd
2 changed files with 3 additions and 3 deletions

View File

@ -511,7 +511,7 @@ defaults = {'rootpath': {'type': str,
'taup_model': {'type': str,
'tooltip': 'Define TauPy model for traveltime estimation. Possible values: 1066a, 1066b, ak135, ak135f, herrin, iasp91, jb, prem, pwdk, sp6',
'value': 'iasp91',
'value': None,
'namestring': 'TauPy model'},
'taup_phases': {'type': str,

View File

@ -1594,7 +1594,7 @@ class PickDlg(QDialog):
def __init__(self, parent=None, data=None, station=None, network=None, location=None, picks=None,
autopicks=None, rotate=False, parameter=None, embedded=False, metadata=None,
event=None, filteroptions=None, model='iasp91', wftype=None):
event=None, filteroptions=None, model=None, wftype=None):
super(PickDlg, self).__init__(parent, 1)
self.orig_parent = parent
self.setAttribute(Qt.WA_DeleteOnClose)
@ -1719,7 +1719,7 @@ class PickDlg(QDialog):
# init expected picks using obspy Taup
try:
if self.metadata:
if self.metadata and model is not None:
self.model = TauPyModel(model)
self.get_arrivals()
self.drawArrivals()