From 7e76b3046004e9c583136057b3cbab83ab665e40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludger=20K=C3=BCperkoch?= Date: Tue, 24 Nov 2015 13:37:11 +0100 Subject: [PATCH] Marginal changes. --- autoPyLoT.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/autoPyLoT.py b/autoPyLoT.py index 27e45841..364680f7 100755 --- a/autoPyLoT.py +++ b/autoPyLoT.py @@ -84,6 +84,7 @@ def autoPyLoT(inputfile): ttpat = parameter.getParam('ttpatter') # pattern of NLLoc-output file nllocoutpatter = parameter.getParam('outpatter') + maxnumit = 3 # maximum number of iterations for re-picking else: locflag = 0 print (" !!! ") @@ -133,7 +134,6 @@ def autoPyLoT(inputfile): else: # get theoretical P-onset times from NLLoc-location file locsearch = '%s/loc/%s.????????.??????.grid?.loc.hyp' % (nllocroot, nllocout) - maxnumit = 3 # maximum number of iterations if len(glob.glob(locsearch)) > 0: # get latest file if several are available nllocfile = max(glob.glob(locsearch), key=os.path.getctime) @@ -214,7 +214,6 @@ def autoPyLoT(inputfile): # get theoretical P-onset times from NLLoc-location file locsearch = '%s/loc/%s.????????.??????.grid?.loc.hyp' % (nllocroot, nllocout) nllocfile = max(glob.glob(locsearch), key=os.path.getctime) - maxnumit = 3 # maximum number of iterations if len(glob.glob(locsearch)) > 0: # get latest file if several are available nllocfile = max(glob.glob(locsearch), key=os.path.getctime)